X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRouting%2FEnhancer%2FRouteEnhancerInterface.php;h=781f9c6ab4b18703cf5f58873d9d6a805b73c8b9;hb=refs%2Fheads%2Fd864;hp=d6be823b5e151ce1f26fa99d50e20630122c7ca9;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Routing/Enhancer/RouteEnhancerInterface.php b/web/core/lib/Drupal/Core/Routing/Enhancer/RouteEnhancerInterface.php index d6be823b5..781f9c6ab 100644 --- a/web/core/lib/Drupal/Core/Routing/Enhancer/RouteEnhancerInterface.php +++ b/web/core/lib/Drupal/Core/Routing/Enhancer/RouteEnhancerInterface.php @@ -2,13 +2,21 @@ namespace Drupal\Core\Routing\Enhancer; -use Symfony\Cmf\Component\Routing\Enhancer\RouteEnhancerInterface as BaseRouteEnhancerInterface; +use Drupal\Core\Routing\EnhancerInterface; use Symfony\Component\Routing\Route; +@trigger_error('\Drupal\Core\Routing\Enhancer\RouteEnhancerInterface is deprecated in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Instead, you should use \Drupal\Core\Routing\EnhancerInterface. See https://www.drupal.org/node/2894934', E_USER_DEPRECATED); + /** * A route enhance service to determine route enhance rules. + * + * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.0. Instead, + * you should use \Drupal\Core\Routing\EnhancerInterface. + * See https://www.drupal.org/node/2894934 + * Part of the deprecation means that applies() is now called on runtime instead + * of compile time. */ -interface RouteEnhancerInterface extends BaseRouteEnhancerInterface { +interface RouteEnhancerInterface extends EnhancerInterface { /** * Declares if the route enhancer applies to the given route.