Hal\Application\Console\DesignPatternApplication::getDefaultCommands PHP Method

getDefaultCommands() protected method

Gets the default commands that should always be available.
protected getDefaultCommands ( ) : Command[]
return Command[] An array of default Command instances
    protected function getDefaultCommands()
    {
        // Keep the core default commands to have the HelpCommand
        // which is used when using the --help option
        $defaultCommands = parent::getDefaultCommands();
        $defaultCommands[] = new RunPatternCommand();
        return $defaultCommands;
    }
DesignPatternApplication