Skip to content

Commit

Permalink
TASK: add beforeLoadFixture signal
Browse files Browse the repository at this point in the history
  • Loading branch information
simstern committed Mar 24, 2023
1 parent 95c5dce commit f8b52db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Command/ReferenceDataCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Neos\Flow\Cli\CommandController;
use Neos\Flow\ObjectManagement\ObjectManagerInterface;
use Neos\Flow\Persistence\PersistenceManagerInterface;
use Neos\Flow\Persistence\RepositoryInterface;
use Neos\Flow\Reflection\ReflectionService;
use Neos\Utility\ObjectAccess;
use Swisscom\AliceConnector\Context;
Expand Down Expand Up @@ -56,6 +55,8 @@ protected function initializeObject(): void

public function importCommand(string $fixtureName): void
{
$this->signalEmitter->emitBeforeLoadFixture();

$objects = $this->context->loadFixture($fixtureName, 'referenceData');

foreach ($objects as $object) {
Expand Down
7 changes: 7 additions & 0 deletions Classes/SignalEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
*/
class SignalEmitter
{
/**
* @Flow\Signal
*/
public function emitBeforeLoadFixture(): void
{
}

/**
* @Flow\Signal
* @param object $existingObject
Expand Down

0 comments on commit f8b52db

Please sign in to comment.