コード例 #1
0
ファイル: Worker.php プロジェクト: AlexCutts/framework
 /**
  * Run the next job for the daemon worker.
  *
  * @param  string  $connectionName
  * @param  string  $queue
  * @param  int  $delay
  * @param  int  $sleep
  * @param  int  $maxTries
  * @return void
  */
 protected function runNextJobForDaemon($connectionName, $queue, $delay, $sleep, $maxTries)
 {
     try {
         $this->pop($connectionName, $queue, $delay, $sleep, $maxTries);
     } catch (\Exception $e) {
         if ($this->exceptions) {
             $this->exceptions->handleException($e);
         }
     }
 }
コード例 #2
0
ファイル: Application.php プロジェクト: Thomvh/turbine
 /**
  * Render the given exception.
  *
  * @param  \Exception  $e
  * @param  \Symfony\Component\Console\Output\OutputInterface  $output
  * @return void
  */
 public function renderException($e, $output)
 {
     // If we have an exception handler instance, we will call that first in case
     // it has some handlers that need to be run first. We will pass "true" as
     // the second parameter to indicate that it's handling a console error.
     if (isset($this->exceptionHandler)) {
         $this->exceptionHandler->handleConsole($e);
     }
     parent::renderException($e, $output);
 }