Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 3.3.10 |
If you load a service (autowired) in a Controller via dependency injection and try to use in a console command via ContainerAwareCommand, the service becomes public.
IMO it should not be available from ContainerAwareCommand event if is used in other place with dependency injection.
Not sure if this is the expected behavior or not as I didn't find any information regarding it.