class LoggerChannelPartFactory in Purge 8.3
Provides a factory that creates LoggerChannelPartInterface instances.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\purge\Logger\LoggerChannelPartFactory implements LoggerChannelPartFactoryInterface
Expanded class hierarchy of LoggerChannelPartFactory
1 file declares its use of LoggerChannelPartFactory
- LoggerChannelPartFactoryTest.php in tests/
src/ Unit/ Logger/ LoggerChannelPartFactoryTest.php
1 string reference to 'LoggerChannelPartFactory'
1 service uses LoggerChannelPartFactory
File
- src/
Logger/ LoggerChannelPartFactory.php, line 11
Namespace
Drupal\purge\LoggerView source
class LoggerChannelPartFactory extends ServiceProviderBase implements LoggerChannelPartFactoryInterface {
/**
* The single and central logger channel used by purge module(s).
*
* @var \Psr\Log\LoggerInterface
*/
protected $loggerChannelPurge;
/**
* Construct \Drupal\purge\Logger\LoggerChannelPartFactory.
*
* @param \Psr\Log\LoggerInterface $logger_channel_purge
* The single and central logger channel used by purge module(s).
*/
public function __construct(LoggerInterface $logger_channel_purge) {
$this->loggerChannelPurge = $logger_channel_purge;
}
/**
* {@inheritdoc}
*/
public function create($id, array $grants = []) {
return new LoggerChannelPart($this->loggerChannelPurge, $id, $grants);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LoggerChannelPartFactory:: |
protected | property | The single and central logger channel used by purge module(s). | |
LoggerChannelPartFactory:: |
public | function |
Create a channel part instance. Overrides LoggerChannelPartFactoryInterface:: |
|
LoggerChannelPartFactory:: |
public | function | Construct \Drupal\purge\Logger\LoggerChannelPartFactory. | |
ServiceProviderBase:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |
5 |
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |