Skip to content

[RFC] Making services private by default in Symfony 4? #20048

@nicolas-grekas

Description

@nicolas-grekas

Just wondering, how about making services private by default in Symfony 4?
That would give us more private services optimizations by default, thus lighter containers.
The path could be as "simple" as deprecating the "public" attribute and replacing it by a "private" one.
Worth pursuing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DependencyInjectionFeatureRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy