src/Controller/CRUDController.php
protected function getLogger()
    {
        if ($this->container->has('logger')) {
            $logger = $this->container->get('logger');
            \assert($logger instanceof LoggerInterface);

            return $logger;
        }

        return new NullLogger();
    }
protected function getLogger()
    {
        if ($this->container->has('logger')) {
            $logger = $this->container->get('logger');
            \assert($logger instanceof LoggerInterface);

            return $logger;
        }

        return new NullLogger();
    }
protected function getLogger ( ) { if ( $ this -> container -> has ( 'logger' ) ) { $ logger = $ this -> container -> get ( 'logger' ) ; \ assert ( $ logger instanceof LoggerInterface ) ; return $ logger ; } return new NullLogger ( ) ; }
Proxy for the logger service of the container.
If no such service is found, a NullLogger is returned.

@return LoggerInterface
Proxy for the logger service of the container . If no such service is found a NullLogger is returned .