LoggerChannelPass
in package
implements
CompilerPassInterface
Replaces the default logger by another one with its own channel for tagged services.
Tags
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
$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
Return values
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> —changeReference()
Creates a copy of a reference and alters the service ID.
private
changeReference(Reference $reference, string $serviceId) : Reference
Parameters
- $reference : Reference
- $serviceId : string