1 | <?php |
||
12 | final class LocaleStrippingRouter implements RouterInterface, WarmableInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var RouterInterface |
||
16 | */ |
||
17 | private $router; |
||
18 | |||
19 | /** |
||
20 | * @var LocaleContextInterface |
||
21 | */ |
||
22 | private $localeContext; |
||
23 | |||
24 | /** |
||
25 | * @param RouterInterface $router |
||
26 | * @param LocaleContextInterface $localeContext |
||
27 | */ |
||
28 | public function __construct(RouterInterface $router, LocaleContextInterface $localeContext) |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | public function match($pathinfo): array |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | public function generate($name, $parameters = [], $absolute = UrlGeneratorInterface::ABSOLUTE_PATH): string |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function setContext(RequestContext $context): void |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | public function getContext(): RequestContext |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function getRouteCollection(): RouteCollection |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function warmUp($cacheDir): void |
||
89 | |||
90 | /** |
||
91 | * @param string $url |
||
92 | * @param string $key |
||
93 | * @param string $value |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | private function removeUnusedQueryArgument(string $url, string $key, string $value): string |
||
107 | } |
||
108 |