Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class Logging |
||
16 | { |
||
17 | /** |
||
18 | * Constructor |
||
19 | * |
||
20 | * @param \Doctrine\ORM\EntityManager $manager |
||
21 | */ |
||
22 | public function __construct(EntityManager $manager) |
||
25 | } |
||
26 | |||
27 | |||
28 | /** |
||
29 | * Create a log entry for the passed request. |
||
30 | * |
||
31 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
32 | * @param string $message |
||
33 | * @return \Zicht\Bundle\UrlBundle\Entity\ErrorLog |
||
34 | */ |
||
35 | public function createLog(Request $request, $message) |
||
44 | ); |
||
45 | } |
||
46 | |||
47 | |||
48 | /** |
||
49 | * Persist the log and flush the manager. |
||
50 | * |
||
51 | * @param ErrorLog $entry |
||
52 | * @return void |
||
53 | */ |
||
54 | public function flush($entry) |
||
60 |