diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 19:26:54 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-03 19:26:54 +0200 |
commit | 4f5b44bd3bd490309eb2ba7b44df4769816ba729 (patch) | |
tree | 6cefe170dfe0a5a361cb1e2d1fc4d580a3316d02 /vendor/symfony/routing/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php | |
parent | 2b840e0cfb63a453bea67a98541f3df9c273c5f5 (diff) | |
download | wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.gz wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.zst wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.zip |
twig implementation
Diffstat (limited to 'vendor/symfony/routing/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php')
-rw-r--r-- | vendor/symfony/routing/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/symfony/routing/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php b/vendor/symfony/routing/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php new file mode 100644 index 00000000..b5def3d4 --- /dev/null +++ b/vendor/symfony/routing/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php | |||
@@ -0,0 +1,39 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\Routing\Matcher; | ||
13 | |||
14 | use Symfony\Component\HttpFoundation\Request; | ||
15 | use Symfony\Component\Routing\Exception\ResourceNotFoundException; | ||
16 | use Symfony\Component\Routing\Exception\MethodNotAllowedException; | ||
17 | |||
18 | /** | ||
19 | * RequestMatcherInterface is the interface that all request matcher classes must implement. | ||
20 | * | ||
21 | * @author Fabien Potencier <fabien@symfony.com> | ||
22 | */ | ||
23 | interface RequestMatcherInterface | ||
24 | { | ||
25 | /** | ||
26 | * Tries to match a request with a set of routes. | ||
27 | * | ||
28 | * If the matcher can not find information, it must throw one of the exceptions documented | ||
29 | * below. | ||
30 | * | ||
31 | * @param Request $request The request to match | ||
32 | * | ||
33 | * @return array An array of parameters | ||
34 | * | ||
35 | * @throws ResourceNotFoundException If no matching resource could be found | ||
36 | * @throws MethodNotAllowedException If a matching resource was found but the request method is not allowed | ||
37 | */ | ||
38 | public function matchRequest(Request $request); | ||
39 | } | ||