diff --git a/kifibundle.info.yml b/kifibundle.info.yml index cd41073..67413d5 100644 --- a/kifibundle.info.yml +++ b/kifibundle.info.yml @@ -1,6 +1,7 @@ name: Kirjastot.fi Components Bundle type: module core: 8.x +core_version_requirement: ">=8" package: Kirjastot.fi description: Various modules built to customize Drupal. dependencies: {} diff --git a/src/EventSubscriber/ConfigurableExceptionLogger.php b/src/EventSubscriber/ConfigurableExceptionLogger.php index c28e57f..deb8a86 100644 --- a/src/EventSubscriber/ConfigurableExceptionLogger.php +++ b/src/EventSubscriber/ConfigurableExceptionLogger.php @@ -2,10 +2,10 @@ namespace Drupal\kifibundle\EventSubscriber; +use Symfony\Component\HttpKernel\Event\ExceptionEvent; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\EventSubscriber\ExceptionLoggingSubscriber; use Drupal\Core\Logger\LoggerChannelFactoryInterface; -use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; class ConfigurableExceptionLogger extends ExceptionLoggingSubscriber { protected $config; @@ -16,13 +16,13 @@ public function __construct(LoggerChannelFactoryInterface $logger, ConfigFactory $this->config = $config->get('kifibundle.logging'); } - public function on403(GetResponseForExceptionEvent $event) { + public function on403(ExceptionEvent $event) { if ($this->isLoggingEnabled(404)) { parent::on403($event); } } - public function on404(GetResponseForExceptionEvent $event) { + public function on404(ExceptionEvent $event) { if ($this->isLoggingEnabled(404)) { parent::on404($event); }