Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Routing / MethodFilter.php
index e565a3e0cf31b8aa40528cefcb182ebe8035dcc1..4d24aa57f5a07a118747fc008225adeeb0041298 100644 (file)
@@ -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());
-  }
-
 }