1 | <?php |
||
27 | final class TenantSubscriber implements EventSubscriber |
||
28 | { |
||
29 | /** |
||
30 | * @var ContainerInterface |
||
31 | */ |
||
32 | protected $container; |
||
33 | |||
34 | /** |
||
35 | * Constructor. |
||
36 | * |
||
37 | * @param ContainerInterface $container |
||
38 | */ |
||
39 | public function __construct(ContainerInterface $container) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function getSubscribedEvents() |
||
54 | |||
55 | /** |
||
56 | * @param LifecycleEventArgs $args |
||
57 | */ |
||
58 | public function prePersist(LifecycleEventArgs $args) |
||
62 | |||
63 | /** |
||
64 | * @param PreUpdateEventArgs $args |
||
65 | */ |
||
66 | public function preUpdate(PreUpdateEventArgs $args) |
||
70 | |||
71 | /** |
||
72 | * @param LifecycleEventArgs $args |
||
73 | */ |
||
74 | protected function addTenant(LifecycleEventArgs $args) |
||
88 | } |
||
89 |