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