class DblogFilterServiceProvider in DBLog Filter 8.2
Class MyModuleServiceProvider.
@package Drupal\mymodule
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\dblog_filter\DblogFilterServiceProvider
Expanded class hierarchy of DblogFilterServiceProvider
File
- src/
DblogFilterServiceProvider.php, line 14
Namespace
Drupal\dblog_filterView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DblogFilterServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |