CraftCli\Application::addUserDefinedCommands PHP Method

addUserDefinedCommands() public method

Find any user-defined Commands in the config and add them to the Application
public addUserDefinedCommands ( ) : void
return void
    public function addUserDefinedCommands()
    {
        foreach ($this->userDefinedCommands as $class) {
            $this->registerCommand($class);
        }
        foreach ($this->userDefinedCommandDirs as $commandNamespace => $commandDir) {
            foreach ($this->findCommandsInDir($commandDir, $commandNamespace) as $class) {
                $this->registerCommand($class);
            }
        }
    }