Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class ChangeUrl implements MutatorInterface |
||
18 | { |
||
19 | /** @var Request */ |
||
20 | private $request; |
||
21 | /** @var UrlGeneratorInterface */ |
||
22 | private $router; |
||
23 | /** @var bool */ |
||
24 | private $changeUrl = true; |
||
25 | |||
26 | public function __construct(RequestStack $requestStack, UrlGeneratorInterface $router) |
||
27 | { |
||
28 | $this->router = $router; |
||
29 | $this->request = $requestStack->getMasterRequest(); |
||
30 | } |
||
31 | |||
32 | public function mutate(Handler $ajax): Handler |
||
46 | } |
||
47 | |||
48 | public function doNotChangeUrl(): self |
||
55 |