jobParams = array($fileId, $eventName); return $this; } /** * Execute job * * @param int $fileId * @param string $eventName */ public function execute($fileId, $eventName) { $event = ProjectFileEventBuilder::getInstance($this->container) ->withFileId($fileId) ->buildEvent(); if ($event !== null) { $this->dispatcher->dispatch($eventName, $event); } } }