Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
10 | class MatchProvider implements MatchProviderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var \Symfony\Component\Routing\Matcher\UrlMatcher |
||
14 | */ |
||
15 | private $urlMatcher; |
||
16 | |||
17 | /** |
||
18 | * @var \Symfony\Component\HttpFoundation\Request |
||
19 | */ |
||
20 | private $request; |
||
21 | |||
22 | /** |
||
23 | * MatchProvider constructor. |
||
24 | * |
||
25 | * @param \Symfony\Component\Routing\Matcher\UrlMatcher $urlMatcher |
||
26 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
27 | */ |
||
28 | 3 | public function __construct(UrlMatcher $urlMatcher, Request $request) |
|
32 | 3 | } |
|
33 | |||
34 | /** |
||
35 | * @param string $url |
||
36 | * |
||
37 | * @return array |
||
38 | * @throws \Symfony\Component\Routing\Exception\ResourceNotFoundException |
||
39 | * @throws \Symfony\Component\Routing\Exception\NoConfigurationException |
||
40 | * @throws \Symfony\Component\Routing\Exception\MethodNotAllowedException |
||
41 | */ |
||
42 | 3 | public function match(string $url): array |
|
43 | { |
||
44 | 3 | return $this->urlMatcher->match($url); |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return array |
||
49 | */ |
||
50 | public function matchRequest(): array |
||
53 | } |
||
54 | } |