1 | <?php |
||
19 | class ClockSubscriber extends Clock implements EventSubscriberInterface |
||
20 | { |
||
21 | protected $mockParamName; |
||
22 | |||
23 | /** |
||
24 | * construct |
||
25 | * |
||
26 | * @param string $mockParamName |
||
27 | */ |
||
28 | public function __construct($mockParamName) |
||
32 | |||
33 | /** |
||
34 | * @see EventSubscriberInterface::getSubscribedEvents() |
||
35 | */ |
||
36 | static public function getSubscribedEvents() |
||
43 | |||
44 | /** |
||
45 | * kernel request event handler |
||
46 | */ |
||
47 | public function onKernelRequest(GetResponseEvent $event) |
||
56 | |||
57 | /** |
||
58 | * console command event handler |
||
59 | */ |
||
60 | public function onConsoleCommand(ConsoleCommandEvent $event) |
||
69 | } |
||
70 |