|
0
|
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\Routing\RequestContextAwareInterface; |
|
|
15 |
|
|
|
16 |
/** |
|
|
17 |
* UrlMatcherInterface is the interface that all URL matcher classes must implement. |
|
|
18 |
* |
|
|
19 |
* @author Fabien Potencier <fabien@symfony.com> |
|
|
20 |
* |
|
|
21 |
* @api |
|
|
22 |
*/ |
|
|
23 |
interface UrlMatcherInterface extends RequestContextAwareInterface |
|
|
24 |
{ |
|
|
25 |
/** |
|
|
26 |
* Tries to match a URL with a set of routes. |
|
|
27 |
* |
|
|
28 |
* @param string $pathinfo The path info to be parsed |
|
|
29 |
* |
|
|
30 |
* @return array An array of parameters |
|
|
31 |
* |
|
|
32 |
* @throws ResourceNotFoundException If the resource could not be found |
|
|
33 |
* @throws MethodNotAllowedException If the resource was found but the request method is not allowed |
|
|
34 |
* |
|
|
35 |
* @api |
|
|
36 |
*/ |
|
|
37 |
function match($pathinfo); |
|
|
38 |
} |