public function registerCustomCommands()
    {
        try {
            $this->readCustomCommandsFromConfig();
        } catch (ConfigurationException $e) {
            if ($e->getCode() === 404) {
                return;
            }
            $this->renderException($e, new ConsoleOutput());
            exit(1);
        } catch (\Exception $e) {
            $this->renderException($e, new ConsoleOutput());
            exit(1);
        }
    }
public function registerCustomCommands()
    {
        try {
            $this->readCustomCommandsFromConfig();
        } catch (ConfigurationException $e) {
            if ($e->getCode() === 404) {
                return;
            }
            $this->renderException($e, new ConsoleOutput());
            exit(1);
        } catch (\Exception $e) {
            $this->renderException($e, new ConsoleOutput());
            exit(1);
        }
    }
public function registerCustomCommands ( ) { try { $ this -> readCustomCommandsFromConfig ( ) ; } catch ( ConfigurationException $ e ) { if ( $ e -> getCode ( ) === 404 ) { return ; } $ this -> renderException ( $ e , new ConsoleOutput ( ) ) ; exit ( 1 ) ; } catch ( \ Exception $ e ) { $ this -> renderException ( $ e , new ConsoleOutput ( ) ) ; exit ( 1 ) ; } }
Register commands from config file

extensions:
commands:
- Project\Command\MyCustomCommand
Register commands from config file