First, I already saw this question.
When I try to update Symfony 3.3 to 3.4, I've got this deprecations :
User Deprecated: The "assetic.filter_manager" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
User Deprecated: The "assetic.filter.cssrewrite" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
The "security.acl" configuration key is deprecated since Symfony 3.4 and will be removed in 4.0. Install symfony/acl-bundle and use the "acl" key instead.
- I try adding this in
src/MyBundle/Resources/services.yml:
services:
Symfony\Bundle\AsseticBundle\AsseticBundle:
public: true
- I installed acl-bundle. The file
config/security.yml:
security:
acl:
connection: default
Thanks for your help
As you already know from comments,
assetic-bundleis deprecated and therefore you're able to migrate on Symfony 4 without changing its service definition.But generally speaking, if you want to override an external service configuration, you can implement a custom CompilerPass
and add it to your bundle as stated in the official documentation.
Refer to Definition API documentation.