1 | <?php |
||
16 | class LogPlugin implements EventSubscriberInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var LoggerInterface |
||
20 | */ |
||
21 | private $logger; |
||
22 | |||
23 | /** |
||
24 | * Constructor |
||
25 | * |
||
26 | * @param LoggerInterface $logger |
||
27 | */ |
||
28 | 9 | public function __construct(LoggerInterface $logger) |
|
32 | |||
33 | /** |
||
34 | * @param RequestEvent $event |
||
35 | */ |
||
36 | 6 | public function onClientRequest(RequestEvent $event) |
|
44 | |||
45 | /** |
||
46 | * @param ResponseEvent $event |
||
47 | */ |
||
48 | 6 | public function onClientResponse(ResponseEvent $event) |
|
61 | |||
62 | /** |
||
63 | * @param FaultEvent $event |
||
64 | */ |
||
65 | 3 | public function onClientFault(FaultEvent $event) |
|
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | 3 | public static function getSubscribedEvents() |
|
86 | } |
||
87 |