private function loadLoggerDefinition()
    {
        $logger_class = $this->container->getParameter('bbapp.logger.class');
        if (true === $this->container->getParameter('debug')) {
            $logger_class = $this->container->getParameter('bbapp.logger_debug.class');
        }

        $this->container->setDefinition('logging', new Definition($logger_class, array(new Reference('bbapp'))));
    }
private function loadLoggerDefinition()
    {
        $logger_class = $this->container->getParameter('bbapp.logger.class');
        if (true === $this->container->getParameter('debug')) {
            $logger_class = $this->container->getParameter('bbapp.logger_debug.class');
        }

        $this->container->setDefinition('logging', new Definition($logger_class, array(new Reference('bbapp'))));
    }
private function loadLoggerDefinition ( ) { $ logger_class = $ this -> container -> getParameter ( 'bbapp.logger.class' ) ; if ( true === $ this -> container -> getParameter ( 'debug' ) ) { $ logger_class = $ this -> container -> getParameter ( 'bbapp.logger_debug.class' ) ; } $ this -> container -> setDefinition ( 'logging' , new Definition ( $ logger_class , array ( new Reference ( 'bbapp' ) ) ) ) ; }
Load on the fly logging service definition, depends on debug value.
Load on the fly logging service definition depends on debug value .