/** * Gets the 'kernel_destruct_subscriber' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Drupal\Core\EventSubscriber\KernelDestructionSubscriber A Drupal\Core\EventSubscriber\KernelDestructionSubscriber instance. */ protected function getKernelDestructSubscriberService() { $this->services['kernel_destruct_subscriber'] = $instance = new \Drupal\Core\EventSubscriber\KernelDestructionSubscriber(); $instance->setContainer($this); $instance->registerService('path.alias_whitelist'); $instance->registerService('router.builder'); $instance->registerService('theme.registry'); $instance->registerService('library.discovery.collector'); $instance->registerService('string_translator.locale.lookup'); $instance->_serviceId = 'kernel_destruct_subscriber'; return $instance; }
/** * Gets the 'kernel_destruct_subscriber' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Drupal\Core\EventSubscriber\KernelDestructionSubscriber A Drupal\Core\EventSubscriber\KernelDestructionSubscriber instance. */ protected function getKernelDestructSubscriberService() { $this->services['kernel_destruct_subscriber'] = $instance = new \Drupal\Core\EventSubscriber\KernelDestructionSubscriber(); $instance->setContainer($this); $instance->registerService('path.alias_whitelist'); $instance->registerService('menu.active_trail'); $instance->registerService('theme.registry'); $instance->registerService('library.discovery.collector'); $instance->registerService('drupal.proxy_original_service.router.builder'); $instance->_serviceId = 'kernel_destruct_subscriber'; return $instance; }
/** * Gets the 'kernel_destruct_subscriber' service. * * This service is shared. * This method always returns the same instance of the service. * * @return Drupal\Core\EventSubscriber\KernelDestructionSubscriber A Drupal\Core\EventSubscriber\KernelDestructionSubscriber instance. */ protected function getKernelDestructSubscriberService() { $this->services['kernel_destruct_subscriber'] = $instance = new \Drupal\Core\EventSubscriber\KernelDestructionSubscriber(); $instance->setContainer($this); $instance->registerService('keyvalue.expirable.database'); $instance->registerService('path.alias_whitelist'); $instance->registerService('theme.registry'); $instance->registerService('library.discovery.collector'); return $instance; }