PHP 클래스 Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\FixEmptyLoggerPass

Monolog 1.x adds a default handler logging on STDERR when a logger has no registered handlers. This is NOT what what we want in Symfony, so in such cases, we add a "null" handler to avoid the issue. Note that Monolog 2.x does not register a default handler anymore, so this pass can be removed when MonologBundle minimum version of Monolog is bumped to 2.0.
또한 보기: https://github.com/Seldaek/monolog/commit/ad37b7b2d11f300cbace9f5e84f855d329519e28
저자: Fabien Potencier ([email protected])
상속: implements Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
파일 보기 프로젝트 열기: symfony/monolog-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\LoggerChannelPass $channelPass )
process ( ContainerBuilder $container )

메소드 상세

__construct() 공개 메소드

public __construct ( Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\LoggerChannelPass $channelPass )
$channelPass Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\LoggerChannelPass

process() 공개 메소드

public process ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder