class TmgmtSmartlingLogSettingsServiceProvider in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 modules/tmgmt_smartling_log_settings/src/TmgmtSmartlingLogSettingsServiceProvider.php \Drupal\tmgmt_smartling_log_settings\TmgmtSmartlingLogSettingsServiceProvider
Overrides the logger.factory service to enable record filtering.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\tmgmt_smartling_log_settings\TmgmtSmartlingLogSettingsServiceProvider
Expanded class hierarchy of TmgmtSmartlingLogSettingsServiceProvider
File
- modules/
tmgmt_smartling_log_settings/ src/ TmgmtSmartlingLogSettingsServiceProvider.php, line 12
Namespace
Drupal\tmgmt_smartling_log_settingsView source
class TmgmtSmartlingLogSettingsServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Alter logger factory in order to instantiate
// Drupal\tmgmt_smartling_log_settings\Logger\LoggerChannel.
$container
->getDefinition('logger.factory')
->setClass(LoggerChannelFactory::class);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |
TmgmtSmartlingLogSettingsServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |