X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRouting%2FEnhancer%2FParamConversionEnhancer.php;h=212839dec00b125a27e790e3341fc5d3d07e0ba9;hb=refs%2Fheads%2Fd864;hp=09d61481186c53a2ee7fe1797342eb929ba00003;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php b/web/core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php index 09d614811..212839dec 100644 --- a/web/core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php +++ b/web/core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php @@ -4,6 +4,7 @@ namespace Drupal\Core\Routing\Enhancer; use Drupal\Core\ParamConverter\ParamConverterManagerInterface; use Drupal\Core\ParamConverter\ParamNotConvertedException; +use Drupal\Core\Routing\EnhancerInterface; use Symfony\Cmf\Component\Routing\RouteObjectInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\ParameterBag; @@ -11,12 +12,11 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\KernelEvents; -use Symfony\Component\Routing\Route; /** * Provides a route enhancer that handles parameter conversion. */ -class ParamConversionEnhancer implements RouteEnhancerInterface, EventSubscriberInterface { +class ParamConversionEnhancer implements EnhancerInterface, EventSubscriberInterface { /** * The parameter conversion manager. @@ -89,11 +89,4 @@ class ParamConversionEnhancer implements RouteEnhancerInterface, EventSubscriber return $events; } - /** - * {@inheritdoc} - */ - public function applies(Route $route) { - return TRUE; - } - }