$logger = $container->get('logger');
This will fetch the service with the service ID "logger" from the container, an object that implements Psr\Log\LoggerInterface.
Psr\Log\LoggerInterface
Topic Id: 10183
Example Ids: 31225
This site is not affiliated with any of the contributors.
Content on the page is taken from Stack Overflow Documentation
This site is NOT affiliated with Stack Overflow or any of the contributors. | Privacy Policy | Terms of Service