1 | <?php |
||
11 | final class EventSubscriber implements DoctrineEventSubscriber |
||
12 | { |
||
13 | /** @var AbstractIdGenerator */ |
||
14 | protected $guidGenerator; |
||
15 | |||
16 | /** |
||
17 | * @param AbstractIdGenerator $guidGenerator |
||
18 | */ |
||
19 | 1 | public function __construct(AbstractIdGenerator $guidGenerator) |
|
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | 1 | public function getSubscribedEvents() |
|
33 | |||
34 | /** |
||
35 | * @param LifecycleEventArgs $args |
||
36 | * @return void |
||
37 | */ |
||
38 | 1 | public function prePersist(LifecycleEventArgs $args) |
|
57 | } |
||
58 |