diff -u b/core/core.services.yml b/core/core.services.yml --- b/core/core.services.yml +++ b/core/core.services.yml @@ -899,7 +899,7 @@ class: Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber tags: - { name: event_subscriber } - arguments: ['@http_kernel', '@logger.channel.php', '@redirect.destination'] + arguments: ['@http_kernel', '@logger.channel.php'] exception.default: class: Drupal\Core\EventSubscriber\DefaultExceptionSubscriber tags: @@ -907,7 +907,7 @@ class: Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriber tags: - { name: event_subscriber } - arguments: ['@http_kernel', '@logger.channel.php'] + arguments: ['@http_kernel', '@logger.channel.php', '@redirect.destination'] exception.default: class: Drupal\Core\EventSubscriber\DefaultExceptionSubscriber tags: @@ -919,7 +919,7 @@ class: Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber tags: - { name: event_subscriber } - arguments: ['@config.factory', '@path.alias_manager', '@http_kernel', '@logger.channel.php', '@redirect.destination'] + arguments: ['@config.factory', '@path.alias_manager', '@http_kernel', '@logger.channel.php'] exception.fast_404_html: class: Drupal\Core\EventSubscriber\Fast404ExceptionHtmlSubscriber tags: @@ -927,7 +927,7 @@ class: Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber tags: - { name: event_subscriber } - arguments: ['@config.factory', '@path.alias_manager', '@http_kernel', '@logger.channel.php'] + arguments: ['@config.factory', '@path.alias_manager', '@http_kernel', '@logger.channel.php', '@redirect.destination'] exception.fast_404_html: class: Drupal\Core\EventSubscriber\Fast404ExceptionHtmlSubscriber tags: diff -u b/core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php b/core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php --- b/core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php +++ b/core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php @@ -7,8 +7,6 @@ namespace Drupal\Core\Routing; -use Drupal\Core\Routing\RedirectDestinationInterface; - /** * Wrapper methods for the Redirect Destination.