Service Container

Other topics

Retrieve a service from the container

$logger = $container->get('logger');

This will fetch the service with the service ID "logger" from the container, an object that implements Psr\Log\LoggerInterface.

Contributors

Topic Id: 10183

Example Ids: 31225

This site is not affiliated with any of the contributors.