public function init()
    {
        if (
            !$this->serviceContainer->isRegistered(ServiceContainer::SERVICE_LOGGER)
            || !($this->getLogger() instanceof LoggerInterface)
        ) {
            $this->setService(ServiceContainer::SERVICE_LOGGER, new NullLogger());
        }
        $this->getControllerDispatcher()->setLogger($this->getLogger());
    }
public function init()
    {
        if (
            !$this->serviceContainer->isRegistered(ServiceContainer::SERVICE_LOGGER)
            || !($this->getLogger() instanceof LoggerInterface)
        ) {
            $this->setService(ServiceContainer::SERVICE_LOGGER, new NullLogger());
        }
        $this->getControllerDispatcher()->setLogger($this->getLogger());
    }
public function init ( ) { if ( ! $ this -> serviceContainer -> isRegistered ( ServiceContainer :: SERVICE_LOGGER ) || ! ( $ this -> getLogger ( ) instanceof LoggerInterface ) ) { $ this -> setService ( ServiceContainer :: SERVICE_LOGGER , new NullLogger ( ) ) ; } $ this -> getControllerDispatcher ( ) -> setLogger ( $ this -> getLogger ( ) ) ; }
Initialize application before execution
Initialize application before execution