TmgmtSmartlingLogSettingsServiceProvider.php in TMGMT Translator Smartling 8.3
Same filename and directory in other branches
Namespace
Drupal\tmgmt_smartling_log_settingsFile
modules/tmgmt_smartling_log_settings/src/TmgmtSmartlingLogSettingsServiceProvider.phpView source
<?php
namespace Drupal\tmgmt_smartling_log_settings;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
use Drupal\tmgmt_smartling_log_settings\Logger\LoggerChannelFactory;
/**
* Overrides the logger.factory service to enable record filtering.
*/
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);
}
}
Classes
Name | Description |
---|---|
TmgmtSmartlingLogSettingsServiceProvider | Overrides the logger.factory service to enable record filtering. |