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