/** * Run the given event. * * @param \Illuminate\Contracts\Container\Container $container * @return mixed */ public function run(Container $container) { if ($this->description) { touch($this->mutexPath()); } $response = $container->call($this->callback, $this->parameters); @unlink($this->mutexPath()); parent::callAfterCallbacks($container); return $response; }
/** * Run the given event. * * @param \Illuminate\Contracts\Container\Container $container * @return mixed * * @throws \Exception */ public function run(Container $container) { if ($this->description) { touch($this->mutexPath()); } try { $response = $container->call($this->callback, $this->parameters); } finally { $this->removeMutex(); } parent::callAfterCallbacks($container); return $response; }
/** * Run the given event. * * @param \Illuminate\Contracts\Container\Container $container * @return mixed * * @throws \Exception */ public function run(Container $container) { if ($this->description) { $this->cache->put($this->mutexName(), true, 1440); } try { $response = $container->call($this->callback, $this->parameters); } finally { $this->removeMutex(); } parent::callAfterCallbacks($container); return $response; }
/** * Run the given event. * * @param \Illuminate\Contracts\Container\Container $container * @return mixed */ public function run(Container $container) { $response = $container->call($this->callback, $this->parameters); parent::callAfterCallbacks($container); return $response; }