1 | <?php |
||
14 | class LoggerListener implements EventSubscriberInterface |
||
15 | { |
||
16 | private $logger; |
||
17 | |||
18 | 1 | public function __construct(LoggerInterface $logger) |
|
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | 1 | public static function getSubscribedEvents() |
|
32 | |||
33 | /** |
||
34 | * Log the query about to be run |
||
35 | * |
||
36 | * @param PreQueryEvent $event |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | 1 | public function log(PreQueryEvent $event) |
|
58 | } |
||
59 |