private function configureLogger(array $mergedConfig, ContainerBuilder $container)
    {
        $this->configureLoggerFormatters($container);

        $loggerMiddleware = new Definition(LoggerMiddleware::class, [
            new Reference($mergedConfig['logger_formatter']),
            new Reference('logger')
        ]);
        $loggerMiddleware->setPublic(false);
        $loggerMiddleware->addTag('monolog.logger', ['channel' => 'command_bus']);

        $container->setDefinition('tactician.middleware.logger', $loggerMiddleware);
    }
private function configureLogger(array $mergedConfig, ContainerBuilder $container)
    {
        $this->configureLoggerFormatters($container);

        $loggerMiddleware = new Definition(LoggerMiddleware::class, [
            new Reference($mergedConfig['logger_formatter']),
            new Reference('logger')
        ]);
        $loggerMiddleware->setPublic(false);
        $loggerMiddleware->addTag('monolog.logger', ['channel' => 'command_bus']);

        $container->setDefinition('tactician.middleware.logger', $loggerMiddleware);
    }
private function configureLogger ( array $ mergedConfig , ContainerBuilder $ container ) { $ this -> configureLoggerFormatters ( $ container ) ; $ loggerMiddleware = new Definition ( LoggerMiddleware :: class , [ new Reference ( $ mergedConfig [ 'logger_formatter' ] ) , new Reference ( 'logger' ) ] ) ; $ loggerMiddleware -> setPublic ( false ) ; $ loggerMiddleware -> addTag ( 'monolog.logger' , [ 'channel' => 'command_bus' ] ) ; $ container -> setDefinition ( 'tactician.middleware.logger' , $ loggerMiddleware ) ; }
Configure the logger middleware.

@param array $mergedConfig
@param ContainerBuilder $container
Configure the logger middleware .