Skip to content

Commit de0a02c

Browse files
authored
Merge pull request #146 from neos/mficzel-patch-1
TASK: Add onAfterHandle to commandHook as the Interface was updated in Neos
2 parents 52ba268 + c781974 commit de0a02c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Classes/CommandHook/UniqueIdentifierCommandHook.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use Neos\ContentRepository\Core\CommandHandler\CommandHookInterface;
66
use Neos\ContentRepository\Core\CommandHandler\CommandInterface;
7+
use Neos\ContentRepository\Core\CommandHandler\Commands;
8+
use Neos\ContentRepository\Core\EventStore\PublishedEvents;
79
use Neos\ContentRepository\Core\Feature\NodeCreation\Command\CreateNodeAggregateWithNode;
810
use Neos\ContentRepository\Core\Feature\NodeModification\Command\SetNodeProperties;
911
use Neos\ContentRepository\Core\NodeType\NodeTypeManager;
@@ -39,6 +41,11 @@ public function onBeforeHandle(CommandInterface $command): CommandInterface
3941
};
4042
}
4143

44+
public function onAfterHandle(CommandInterface $command, PublishedEvents $events): Commands
45+
{
46+
return Commands::createEmpty();
47+
}
48+
4249
private function handleSetNodeProperties(SetNodeProperties $command): CommandInterface
4350
{
4451
if (isset($command->propertyValues->values['identifier'])) {

0 commit comments

Comments
 (0)