projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull merge.
[yaffs-website]
/
web
/
core
/
lib
/
Drupal
/
Core
/
Routing
/
MethodFilter.php
diff --git
a/web/core/lib/Drupal/Core/Routing/MethodFilter.php
b/web/core/lib/Drupal/Core/Routing/MethodFilter.php
index e565a3e0cf31b8aa40528cefcb182ebe8035dcc1..4d24aa57f5a07a118747fc008225adeeb0041298 100644
(file)
--- 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\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.
*/
use Symfony\Component\Routing\RouteCollection;
/**
* Filters routes based on the HTTP method.
*/
-class MethodFilter implements
Route
FilterInterface {
+class MethodFilter implements FilterInterface {
/**
* {@inheritdoc}
/**
* {@inheritdoc}
@@
-47,11
+46,4
@@
class MethodFilter implements RouteFilterInterface {
throw new MethodNotAllowedException(array_unique($all_supported_methods));
}
throw new MethodNotAllowedException(array_unique($all_supported_methods));
}
- /**
- * {@inheritdoc}
- */
- public function applies(Route $route) {
- return !empty($route->getMethods());
- }
-
}
}