New in Symfony 3.3: Dependency Injection deprecations
Deprecated dumping an uncompiled container¶
The service container in Symfony applications is usually configured with YAML and XML files, but it's dumped into PHP before the application execution to improve its performance.
Compiling and dumping the container is a rather complex process and in Symfony 3.3 we've simplified it a bit by deprecating the dumping of uncompiled containers. This change won't impact you unless using the stand-alone DependencyInjection component.
Symfony\Component\DependencyInjection\DefinitionDecorator class is
confusing because it has nothing to do with service decoration. This class
is used to reflect a parent-child-relationship between definitions.
In Symfony 3.3, to avoid any confusion, this class has been deprecated and
Deprecated the case-insensitivity of service identifiers¶
Service identifiers in Symfony applications are case insensitive. This means
that if your service id is
app.UserManager, you can inject or get that
In Symfony 3.3 we've deprecated this behavior and service identifiers are no longer case-insensitive. You must inject or get the services using the exact same identifier used in the config files.
In addition to being more correct, removing this feature in Symfony 4.0 will unlock other potential optimizations in the DependencyInjection component code.
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.