Documentation

LoggerChannelPass
in package
implements CompilerPassInterface

Replaces the default logger by another one with its own channel for tagged services.

Tags
author

Christophe Coevoet stof@notk.org

internalsince

3.9.0

Interfaces, Classes and Traits

CompilerPassInterface
Interface that must be implemented by compilation passes.

Table of Contents

$channels  : mixed
getChannels()  : array<string|int, mixed>
process()  : mixed
You can modify the container here before it is dumped to PHP code.
createLogger()  : void
Create new logger from the monolog.logger_prototype
processChannels()  : array<string|int, mixed>
changeReference()  : Reference
Creates a copy of a reference and alters the service ID.

Properties

Methods

getChannels()

public getChannels() : array<string|int, mixed>
Return values
array<string|int, mixed>

createLogger()

Create new logger from the monolog.logger_prototype

protected createLogger(string $channel, string $loggerId, ContainerBuilder $container) : void
Parameters
$channel : string
$loggerId : string
$container : ContainerBuilder
Return values
void

processChannels()

protected processChannels(array<string|int, mixed>|null $configuration) : array<string|int, mixed>
Parameters
$configuration : array<string|int, mixed>|null
Return values
array<string|int, mixed>

Search results