| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class ConfigSyncSubscriber implements EventSubscriber |
||
| 20 | { |
||
| 21 | private Manager $manager; |
||
| 22 | |||
| 23 | public function __construct(Manager $manager) |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getSubscribedEvents(): array |
||
| 31 | } |
||
| 32 | |||
| 33 | public function postUpdate(LifecycleEventArgs $event): void |
||
| 34 | { |
||
| 35 | $entity = $event->getObject(); |
||
| 36 | |||
| 37 | if (!($entity instanceof Domain)) { |
||
| 38 | return; |
||
| 39 | } |
||
| 40 | |||
| 41 | $this->manager->refresh(); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function postPersist(LifecycleEventArgs $event): void |
||
| 47 | } |
||
| 48 | } |
||
| 49 |