CommandHookInterface
interface CommandHookInterface (View source)
Contract for a hook that is invoked just before any command is processed via {ContentRepository::handle()}
A command hook can be used to replace/alter an incoming command before it is being passed to the corresponding {\Neos\ContentRepository\Core\CommandHandler\CommandHandlerInterface}. This can be used to change or enrich the payload of the command. A command hook can also be used to intercept commands based on their type or payload but this is not the intended use case because it can lead to a degraded user experience
Methods
Details
CommandInterface
onBeforeHandle(CommandInterface $command)
No description
Commands
onAfterHandle(CommandInterface $command, PublishedEvents $events)
No description