/** * Stops propagation of ProcessEvents when using Batching * * @param ProcessEvent $event The Process Event * * @return bool */ public function onProcess(ProcessEvent $event) { $command = $event->getCommand(); $operation = $this->description->getOperation($command->getName()); if (!$operation->getData('batching')) { return false; } $event->stopPropagation(); return true; }