vendor/symfony/src/Symfony/Component/Routing/Matcher/Dumper/MatcherDumperInterface.php
equal
deleted
inserted
replaced
|
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\Dumper; |
|
13 |
|
14 /** |
|
15 * MatcherDumperInterface is the interface that all matcher dumper classes must implement. |
|
16 * |
|
17 * @author Fabien Potencier <fabien@symfony.com> |
|
18 */ |
|
19 interface MatcherDumperInterface |
|
20 { |
|
21 /** |
|
22 * Dumps a set of routes to a PHP class. |
|
23 * |
|
24 * Available options: |
|
25 * |
|
26 * * class: The class name |
|
27 * * base_class: The base class name |
|
28 * |
|
29 * @param array $options An array of options |
|
30 * |
|
31 * @return string A PHP class representing the matcher class |
|
32 */ |
|
33 function dump(array $options = array()); |
|
34 |
|
35 /** |
|
36 * Gets the routes to match. |
|
37 * |
|
38 * @return RouteCollection A RouteCollection instance |
|
39 */ |
|
40 function getRoutes(); |
|
41 } |