Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Routing / Enhancer / RouteEnhancerInterface.php
index d6be823b5e151ce1f26fa99d50e20630122c7ca9..781f9c6ab4b18703cf5f58873d9d6a805b73c8b9 100644 (file)
@@ -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.