From the official release , Symfony services are private by default. But when I run debug
command on my Symfony-4.4 container:
bin/console debug:container
It still lists a lot of Symfony framework built-in services as public
.
Does this private/public
feature not apply to command line operations?
The debug:container command for example hides the private services by default, so it's no longer useful to list the services available in your application. That's why in Symfony 4.1 we've changed the debug:container command to show the private services by default and we've also deprecated the --show-private option. See https://symfony.com/blog/new-in-symfony-4-1-hidden-services
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.