src/PhpConsole/Handler.php
public function start() {
		if($this->isStarted) {
			throw new \Exception(get_called_class() . ' is already started, use ' . get_called_class() . '::getInstance()->isStarted() to check it.');
		}
		$this->isStarted = true;

		if($this->handleErrors) {
			$this->initErrorsHandler();
		}
		if($this->handleExceptions) {
			$this->initExceptionsHandler();
		}
	}
public function start() {
		if($this->isStarted) {
			throw new \Exception(get_called_class() . ' is already started, use ' . get_called_class() . '::getInstance()->isStarted() to check it.');
		}
		$this->isStarted = true;

		if($this->handleErrors) {
			$this->initErrorsHandler();
		}
		if($this->handleExceptions) {
			$this->initExceptionsHandler();
		}
	}
public function start ( ) { if ( $ this -> isStarted ) { throw new \ Exception ( get_called_class ( ) . ' is already started, use ' . get_called_class ( ) . '::getInstance()->isStarted() to check it.' ) ; } $ this -> isStarted = true ; if ( $ this -> handleErrors ) { $ this -> initErrorsHandler ( ) ; } if ( $ this -> handleExceptions ) { $ this -> initExceptionsHandler ( ) ; } }
Start errors & exceptions handlers
@throws \Exception
Start errors & exceptions handlers