LoggerChannelPass
in package
implements
CompilerPassInterface
Replaces the default logger by another one with its own channel for tagged services.
Tags
Table of Contents
Interfaces
- CompilerPassInterface
- Interface that must be implemented by compilation passes.
Properties
- $channels : mixed
Methods
- getChannels() : array<string|int, mixed>
- process() : mixed
- You can modify the container here before it is dumped to PHP code.
- createLogger() : mixed
- 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
$channels
protected
mixed
$channels
= ['app']
Methods
getChannels()
public
getChannels() : array<string|int, mixed>
Return values
array<string|int, mixed>process()
You can modify the container here before it is dumped to PHP code.
public
process(ContainerBuilder $container) : mixed
Parameters
- $container : ContainerBuilder
createLogger()
Create new logger from the monolog.logger_prototype
protected
createLogger(string $channel, string $loggerId, ContainerBuilder $container) : mixed
Parameters
- $channel : string
- $loggerId : string
- $container : ContainerBuilder
processChannels()
protected
processChannels(array<string|int, mixed> $configuration) : array<string|int, mixed>
Parameters
- $configuration : array<string|int, mixed>
Return values
array<string|int, mixed>changeReference()
Creates a copy of a reference and alters the service ID.
private
changeReference(Reference $reference, string $serviceId) : Reference
Parameters
- $reference : Reference
- $serviceId : string