1 | <?php |
||
9 | class VersionListener |
||
10 | { |
||
11 | private $viewHandler; |
||
12 | private $regex; |
||
13 | private $version = false; |
||
14 | |||
15 | 1 | public function __construct(ViewHandlerInterface $viewHandler) |
|
19 | |||
20 | /** |
||
21 | * Gets the version. |
||
22 | * |
||
23 | * @return mixed |
||
24 | */ |
||
25 | 1 | public function getVersion() |
|
29 | |||
30 | /** |
||
31 | * Sets the regex. |
||
32 | * |
||
33 | * @param string $regex |
||
34 | */ |
||
35 | 1 | public function setRegex($regex) |
|
39 | |||
40 | 1 | public function onKernelRequest(GetResponseEvent $event) |
|
55 | } |
||
56 |