public function CleanerCacheClearEventSubscriber::__construct in Cleaner 8.2
CleanerCacheClearEventSubscriber constructor.
Parameters
\Drupal\Core\Database\Connection $database: Database connection.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_channel_factory: Logger channel factory.
File
- src/
EventSubscriber/ CleanerCacheClearEventSubscriber.php, line 66
Class
- CleanerCacheClearEventSubscriber
- Class CleanerCacheClearEventSubscriber.
Namespace
Drupal\cleaner\EventSubscriberCode
public function __construct(Connection $database, ConfigFactoryInterface $config_factory, CacheBackendInterface $cache_backend, LoggerChannelFactoryInterface $logger_channel_factory) {
$this->database = $database;
$this->config = $config_factory
->get('cleaner.settings');
$this->cacheBackend = $cache_backend;
$this->loggerChannel = $logger_channel_factory
->get('cleaner');
}