Tutorial by Examples

$logger = $container->get('logger'); This will fetch the service with the service ID "logger" from the container, an object that implements Psr\Log\LoggerInterface.

Page 1 of 1