Symfony\Component\Console\Application::setCatchExceptions PHP Method

setCatchExceptions() public method

Sets whether to catch exceptions or not during commands execution.
public setCatchExceptions ( boolean $boolean )
$boolean boolean Whether to catch exceptions or not during commands execution
    public function setCatchExceptions($boolean)
    {
        $this->catchExceptions = (bool) $boolean;
    }

Usage Example

 /**
  * Setup symfonys consoles application
  * 
  * @return ConsoleApplication
  */
 public function setupConsoleApplication()
 {
     $this->consoleApplication = new ConsoleApplication();
     $this->consoleApplication->setCatchExceptions(false);
     $this->setupConsoleCommands();
     return $this->consoleApplication;
 }
All Usage Examples Of Symfony\Component\Console\Application::setCatchExceptions