1 | <?php |
||
14 | final class DoctrineDbalLogger implements SQLLogger |
||
15 | { |
||
16 | const MAX_STRING_LENGTH = 32; |
||
17 | const BINARY_DATA_VALUE = '(binary value)'; |
||
18 | |||
19 | /** |
||
20 | * @var LoggerInterface |
||
21 | */ |
||
22 | private $logger; |
||
23 | |||
24 | /** |
||
25 | * @param LoggerInterface $logger |
||
26 | */ |
||
27 | 2 | public function __construct(LoggerInterface $logger) |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 1 | public function startQuery($sql, array $params = null, array $types = null) |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 1 | public function stopQuery() |
|
67 | |||
68 | /** |
||
69 | * Logs a message. |
||
70 | * |
||
71 | * @param string $message A message to log |
||
72 | * @param array $params The context |
||
73 | */ |
||
74 | 1 | private function log($message, array $params) |
|
78 | } |
||
79 |