Deployer\Console\Application::getDefaultCommands PHP Method

getDefaultCommands() protected method

protected getDefaultCommands ( )
    protected function getDefaultCommands()
    {
        $commands = parent::getDefaultCommands();
        if ('phar:' === substr(__FILE__, 0, 5)) {
            $commands[] = $this->selfUpdateCommand();
        }
        return $commands;
    }