diff --git a/core/core.services.yml b/core/core.services.yml index 7cfc396..447d85e 100644 --- a/core/core.services.yml +++ b/core/core.services.yml @@ -660,7 +660,7 @@ services: arguments: ['@current_route_match'] router.route_provider: class: Drupal\Core\Routing\RouteProvider - arguments: ['@database', '@state', '@path.current', '@cache.data', '@path_processor_manager'] + arguments: ['@database', '@state', '@path.current', '@cache.data', '@path_processor_manager', '@cache_tags.invalidator'] tags: - { name: event_subscriber } - { name: backend_overridable } diff --git a/core/lib/Drupal/Core/Routing/RouteProvider.php b/core/lib/Drupal/Core/Routing/RouteProvider.php index e315ca2..8e350ff 100644 --- a/core/lib/Drupal/Core/Routing/RouteProvider.php +++ b/core/lib/Drupal/Core/Routing/RouteProvider.php @@ -112,16 +112,16 @@ class RouteProvider implements PreloadableRouteProviderInterface, PagedRouteProv * @param \Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tag_invalidator * The cache tag invalidator. * @param string $table - * The table in the database to use for matching. + * (Optional) The table in the database to use for matching. Defaults to 'router' */ public function __construct(Connection $connection, StateInterface $state, CurrentPathStack $current_path, CacheBackendInterface $cache_backend, InboundPathProcessorInterface $path_processor, CacheTagsInvalidatorInterface $cache_tag_invalidator, $table = 'router') { $this->connection = $connection; $this->state = $state; - $this->tableName = $table; $this->currentPath = $current_path; $this->cache = $cache_backend; $this->cacheTagInvalidator = $cache_tag_invalidator; $this->pathProcessor = $path_processor; + $this->tableName = $table; } /**