I have recently upgraded from Symfony 3.4 to 4.4
The codebase is really large and there are a lot of references to container->get('logger') from all over the place.
I have been trying to make this service public, but not having any luck with any examples I can find. Error:
The "logger" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.
In my service.yml I have tried this with no luck:
Psr\Log\LoggerInterface:
public: true
Psr\Log\LoggerInterface:
alias: 'logger'
public: true
Psr\Log\LoggerInterface:
alias: 'monolog.logger'
public: true
How can I make the logger service public?
NOTE: in the upgrade from 3.4->4.4 we did not update the codebase to use Symfony Flex