You are here

class DblogFilterServiceProvider in DBLog Filter 8.2

Class MyModuleServiceProvider.

@package Drupal\mymodule

Hierarchy

Expanded class hierarchy of DblogFilterServiceProvider

File

src/DblogFilterServiceProvider.php, line 14

Namespace

Drupal\dblog_filter
View source
class DblogFilterServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('logger.dblog');
    $definition
      ->setClass('Drupal\\dblog_filter\\Logger\\DBLogFilter');
    $definition
      ->setArguments([
      new Reference('database'),
      new Reference('logger.log_message_parser'),
    ]);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DblogFilterServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1