1 | <?php |
||
19 | class Logger implements LoggerInterface |
||
20 | { |
||
21 | private $entityDeleteLogs = []; |
||
22 | |||
23 | /** |
||
24 | * @var \Doctrine\Common\Persistence\ManagerRegistry |
||
25 | */ |
||
26 | private $doctrine; |
||
27 | |||
28 | public function __construct(ManagerRegistry $doctrine) |
||
32 | |||
33 | public function log(AuditLog $event = null) |
||
47 | |||
48 | /** |
||
49 | * @return ObjectManager |
||
50 | */ |
||
51 | protected function getManager() |
||
55 | |||
56 | /** |
||
57 | * @return \Doctrine\Common\Persistence\ManagerRegistry |
||
58 | */ |
||
59 | public function getDoctrine() |
||
63 | |||
64 | /** |
||
65 | * @param AuditLog $event |
||
66 | */ |
||
67 | protected function saveLog(AuditLog $event) |
||
72 | |||
73 | public function savePendingLogs() |
||
81 | } |
||
82 |