You are here

class LoggerChannelPartFactory in Purge 8.3

Provides a factory that creates LoggerChannelPartInterface instances.

Hierarchy

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'
purge.services.yml in ./purge.services.yml
purge.services.yml
1 service uses LoggerChannelPartFactory
purge.logger.parts_factory in ./purge.services.yml
Drupal\purge\Logger\LoggerChannelPartFactory

File

src/Logger/LoggerChannelPartFactory.php, line 11

Namespace

Drupal\purge\Logger
View 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

Namesort descending Modifiers Type Description Overrides
LoggerChannelPartFactory::$loggerChannelPurge protected property The single and central logger channel used by purge module(s).
LoggerChannelPartFactory::create public function Create a channel part instance. Overrides LoggerChannelPartFactoryInterface::create
LoggerChannelPartFactory::__construct public function Construct \Drupal\purge\Logger\LoggerChannelPartFactory.
ServiceProviderBase::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter 5
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1