| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| 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 | * Matcher constructor. |
||
| 19 | * |
||
| 20 | * @param \Symfony\Component\Routing\Matcher\UrlMatcher $urlMatcher |
||
| 21 | */ |
||
| 22 | 3 | public function __construct(UrlMatcher $urlMatcher) |
|
| 23 | { |
||
| 24 | 3 | $this->urlMatcher = $urlMatcher; |
|
| 25 | 3 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $url |
||
| 29 | * |
||
| 30 | * @return array |
||
| 31 | * @throws \Symfony\Component\Routing\Exception\ResourceNotFoundException |
||
| 32 | * @throws \Symfony\Component\Routing\Exception\NoConfigurationException |
||
| 33 | * @throws \Symfony\Component\Routing\Exception\MethodNotAllowedException |
||
| 34 | */ |
||
| 35 | 3 | public function match(string $url): array |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function matchRequest(Request $request): array |
||
| 48 | } |
||
| 49 | } |