1 | <?php |
||
19 | class Logger implements LoggerInterface |
||
20 | { |
||
21 | private $entityDeleteLogs = []; |
||
22 | |||
23 | /** |
||
24 | * @var \Doctrine\Bundle\DoctrineBundle\Registry |
||
25 | */ |
||
26 | private $doctrine; |
||
27 | |||
28 | public function __construct(Registry $doctrine) |
||
32 | |||
33 | public function log(AuditLog $event = null) |
||
46 | |||
47 | /** |
||
48 | * @return EntityManager |
||
49 | */ |
||
50 | protected function getEntityManager() |
||
54 | |||
55 | /** |
||
56 | * @return \Doctrine\Bundle\DoctrineBundle\Registry |
||
57 | */ |
||
58 | public function getDoctrine() |
||
62 | |||
63 | /** |
||
64 | * @param AuditLog $event |
||
65 | * @throws \Doctrine\ORM\ORMException |
||
66 | * @throws \Doctrine\ORM\OptimisticLockException |
||
67 | */ |
||
68 | protected function saveLog(AuditLog $event) |
||
73 | |||
74 | public function savePendingLogs() |
||
82 | |||
83 | } |
||
84 |