1 | <?php |
||
10 | class InjectLiveReloadListener implements EventSubscriberInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $url; |
||
16 | |||
17 | /** |
||
18 | * @param string $url |
||
19 | */ |
||
20 | 16 | public function __construct($url) |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 16 | public function onKernelResponse(FilterResponseEvent $event) |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 11 | public static function getSubscribedEvents() |
|
55 | |||
56 | /** |
||
57 | * @param $event |
||
58 | * |
||
59 | * @return bool |
||
60 | */ |
||
61 | 16 | private function shouldInject(FilterResponseEvent $event) |
|
73 | } |
||
74 |