| 3 |
liveuser |
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\Matcher\Dumper\CompiledUrlMatcherTrait;
|
|
|
15 |
use Symfony\Component\Routing\RequestContext;
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* Matches URLs based on rules dumped by CompiledUrlMatcherDumper.
|
|
|
19 |
*
|
|
|
20 |
* @author Nicolas Grekas <p@tchwork.com>
|
|
|
21 |
*/
|
|
|
22 |
class CompiledUrlMatcher extends UrlMatcher
|
|
|
23 |
{
|
|
|
24 |
use CompiledUrlMatcherTrait;
|
|
|
25 |
|
|
|
26 |
public function __construct(array $compiledRoutes, RequestContext $context)
|
|
|
27 |
{
|
|
|
28 |
$this->context = $context;
|
|
|
29 |
list($this->matchHost, $this->staticRoutes, $this->regexpList, $this->dynamicRoutes, $this->checkCondition) = $compiledRoutes;
|
|
|
30 |
}
|
|
|
31 |
}
|