|
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\Dumper; |
|
|
13 |
|
|
|
14 |
use Symfony\Component\Routing\RouteCollection; |
|
|
15 |
use Symfony\Component\Routing\Route; |
|
|
16 |
|
|
|
17 |
/** |
|
|
18 |
* MatcherDumper is the abstract class for all built-in matcher dumpers. |
|
|
19 |
* |
|
|
20 |
* @author Fabien Potencier <fabien@symfony.com> |
|
|
21 |
*/ |
|
|
22 |
abstract class MatcherDumper implements MatcherDumperInterface |
|
|
23 |
{ |
|
|
24 |
private $routes; |
|
|
25 |
|
|
|
26 |
/** |
|
|
27 |
* Constructor. |
|
|
28 |
* |
|
|
29 |
* @param RouteCollection $routes The RouteCollection to dump |
|
|
30 |
*/ |
|
|
31 |
public function __construct(RouteCollection $routes) |
|
|
32 |
{ |
|
|
33 |
$this->routes = $routes; |
|
|
34 |
} |
|
|
35 |
|
|
|
36 |
/** |
|
|
37 |
* Gets the routes to dump. |
|
|
38 |
* |
|
|
39 |
* @return RouteCollection A RouteCollection instance |
|
|
40 |
*/ |
|
|
41 |
public function getRoutes() |
|
|
42 |
{ |
|
|
43 |
return $this->routes; |
|
|
44 |
} |
|
|
45 |
} |