diff --git a/core/lib/Drupal/Core/Routing/AccessAwareRouter.php b/core/lib/Drupal/Core/Routing/AccessAwareRouter.php index 88fa120838..7ed10d6145 100644 --- a/core/lib/Drupal/Core/Routing/AccessAwareRouter.php +++ b/core/lib/Drupal/Core/Routing/AccessAwareRouter.php @@ -18,6 +18,7 @@ /** * @deprecated in Drupal 8.5.x and will be removed before Drupal 9.0.0. * Use Drupal\Core\Routing\Router with $check_access in the constructor instead. + * See https://www.drupal.org/node/2915905 */ class AccessAwareRouter extends Router { @@ -26,6 +27,8 @@ class AccessAwareRouter extends Router { */ public function __construct(RouteProviderInterface $route_provider, CurrentPathStack $current_path, UrlGeneratorInterface $url_generator, AccessManagerInterface $access_manager, AccountInterface $account, $check_access = TRUE) { parent::__construct($route_provider, $current_path, $url_generator, $access_manager, $account, $check_access); + + @trigger_error(__NAMESPACE__ . '\AccessAwareRouter is deprecated in Drupal 8.5.x and will be removed before Drupal 9.0.0. Use Drupal\Core\Routing\Router with $check_access in the constructor instead. See https://www.drupal.org/node/2915905', E_USER_DEPRECATED); } }