Skip to content

Commit c781974

Browse files
authored
TASK: Adjust to API changes from Neos
The onAfterHandle was introduced in the CommandHandlerInterface with neos/neos-development-collection#5468 and will be released with Neos 9 beta 19
1 parent 52ba268 commit c781974

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)