| @@ 26-40 (lines=15) @@ | ||
| 23 | /** |
|
| 24 | * {@inheritdoc} |
|
| 25 | */ |
|
| 26 | protected function process(&$data) |
|
| 27 | { |
|
| 28 | $this->prePersist($data); |
|
| 29 | foreach ($this->container->get(ExtensionManager::class)->getExtensions() as $extension) { |
|
| 30 | $extension->prePersist($data, $this, $this->context); |
|
| 31 | } |
|
| 32 | ||
| 33 | $this->getManager()->persist($data); |
|
| 34 | $this->getManager()->flush(); |
|
| 35 | ||
| 36 | $this->postPersist($data); |
|
| 37 | foreach ($this->container->get(ExtensionManager::class)->getExtensions() as $extension) { |
|
| 38 | $extension->postPersist($data, $this, $this->context); |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * {@inheritdoc} |
|
| @@ 28-42 (lines=15) @@ | ||
| 25 | /** |
|
| 26 | * {@inheritdoc} |
|
| 27 | */ |
|
| 28 | protected function process(&$data) |
|
| 29 | { |
|
| 30 | $this->preDelete($data); |
|
| 31 | foreach ($this->container->get(ExtensionManager::class)->getExtensions() as $extension) { |
|
| 32 | $extension->preDelete($data, $this, $this->context); |
|
| 33 | } |
|
| 34 | ||
| 35 | $this->getManager()->remove($data); |
|
| 36 | $this->getManager()->flush(); |
|
| 37 | ||
| 38 | $this->postDelete($data); |
|
| 39 | foreach ($this->container->get(ExtensionManager::class)->getExtensions() as $extension) { |
|
| 40 | $extension->postDelete($data, $this, $this->context); |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * {@inheritdoc} |
|
| @@ 27-40 (lines=14) @@ | ||
| 24 | /** |
|
| 25 | * {@inheritdoc} |
|
| 26 | */ |
|
| 27 | protected function process(&$data) |
|
| 28 | { |
|
| 29 | $this->preUpdate($data); |
|
| 30 | foreach ($this->container->get(ExtensionManager::class)->getExtensions() as $extension) { |
|
| 31 | $extension->preUpdate($data, $this, $this->context); |
|
| 32 | } |
|
| 33 | ||
| 34 | $this->getManager()->flush(); |
|
| 35 | ||
| 36 | $this->postUpdate($data); |
|
| 37 | foreach ($this->container->get(ExtensionManager::class)->getExtensions() as $extension) { |
|
| 38 | $extension->postUpdate($data, $this, $this->context); |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * {@inheritdoc} |
|