X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRouting%2FMethodFilter.php;h=4d24aa57f5a07a118747fc008225adeeb0041298;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=e565a3e0cf31b8aa40528cefcb182ebe8035dcc1;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Routing/MethodFilter.php b/web/core/lib/Drupal/Core/Routing/MethodFilter.php index e565a3e0c..4d24aa57f 100644 --- a/web/core/lib/Drupal/Core/Routing/MethodFilter.php +++ b/web/core/lib/Drupal/Core/Routing/MethodFilter.php @@ -4,13 +4,12 @@ namespace Drupal\Core\Routing; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Exception\MethodNotAllowedException; -use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; /** * Filters routes based on the HTTP method. */ -class MethodFilter implements RouteFilterInterface { +class MethodFilter implements FilterInterface { /** * {@inheritdoc} @@ -47,11 +46,4 @@ class MethodFilter implements RouteFilterInterface { throw new MethodNotAllowedException(array_unique($all_supported_methods)); } - /** - * {@inheritdoc} - */ - public function applies(Route $route) { - return !empty($route->getMethods()); - } - }