Returns the default list of disallowed commands.

@return array
186644
protected function getDisallowedOperations()
    {
        return array(
            'SHUTDOWN' => true,
            'INFO' => true,
            'DBSIZE' => true,
            'LASTSAVE' => true,
            'CONFIG' => true,
            'MONITOR' => true,
            'SLAVEOF' => true,
            'SAVE' => true,
            'BGSAVE' => true,
            'BGREWRITEAOF' => true,
            'SLOWLOG' => true,
        );
    }
124328
protected function getDefaultCommands()
    {
        $commands = parent::getDefaultCommands();

        $commands = array_merge($commands, array(
            new Command\Cache\Clear(),
            new Command\Cache\ListObjects(),
            new Command\Cache\Purge(),

            new Command\Database\Install(),
            new Command\Database\Drop(),

            new Command\Extension\Disable(),
            new Command\Extension\Enable(),
            new Command\Extension\Install(),
            new Command\Extension\Uninstall(),
            new Command\Extension\InstallFile(),
            new Command\Extension\Register(),
            new Command\Extension\Symlink(),

            new Command\Finder\Index(),
            new Command\Finder\Purge(),

            new Command\Plugin\ListAll(),
            new Command\Plugin\Install(),
            new Command\Plugin\Uninstall(),

            new Command\Site\CheckIn(),
            new Command\Site\Configure(),
            new Command\Site\Create(),
            new Command\Site\Deploy(),
            new Command\Site\Delete(),
            new Command\Site\Download(),
            new Command\Site\Install(),
            new Command\Site\Listing(),
            new Command\Site\Token(),

            new Command\Vhost\Create(),
            new Command\Vhost\Remove(),

            new Command\Versions()
        ));

        return $commands;
    }
983608
public function getDefaultParameters()
    {
        return [
            'vendor' => null,
            'testMode' => false,
            'referrerId' => null,
            'language' => null,
            'useOldBasketFormat' => false,
            'exitOnResponse' => false,
            'apply3DSecure' => null,
            'useAuthenticate' => null,
            'accountType' => null,
        ];
    }
677968
public function getDisabledModuleIds()
    {
        $variablesLocator = $this->getModuleVariablesLocator();
        $disabledModules = $variablesLocator->getModuleVariable('aDisabledModules');
        $disabledModules = is_array($disabledModules) ? $disabledModules : [];

        return $disabledModules;
    }
94332
private function resolveCommands()
    {
        $commands = [];
        foreach ($this->getParameter('commands') as $cmd) {
            $commands[] = is_array($cmd) ? (new ProcessBuilder($cmd))->getProcess() : new Process($cmd);
        }

        return $commands;
    }
1332617
protected function getDefaultCommands() {
        $defaultCommands = [];
        /*
        foreach (self::$defaultCommands as $classname) {
            if (class_exists($classname) && is_subclass_of($classname, "nb\\console\\Driver")) {
                $defaultCommands[] = new $classname();
            }
        }
        */
        //更换为接口
        //self::$defaultCommands
        foreach ($this->defaultCommands as $classname) {
            if (class_exists($classname) && is_subclass_of($classname, "nb\\console\\Command")) {

                $defaultCommands[] = new Pack(new $classname());
            }
        }

        return $defaultCommands;
    }
401178
public function disableCommandName()
    {
        if ($this->commandNameEnabled && $this->commandName) {
            array_unshift($this->arguments, $this->commandName);
        }
        $this->commandNameEnabled = false;
        return $this;
    }
776058
static public function commandLineDefaults() {
		if ( ! defined( 'PB_CONVERT_COMMAND' ) ) {
			define( 'PB_CONVERT_COMMAND', '/usr/bin/convert' );
		}
		if ( ! defined( 'PB_GS_COMMAND' ) ) {
			define( 'PB_GS_COMMAND', '/usr/bin/gs' );
		}
		if ( ! defined( 'PB_PDFINFO_COMMAND' ) ) {
			define( 'PB_PDFINFO_COMMAND', '/usr/bin/pdfinfo' );
		}
		if ( ! defined( 'PB_PDFTOPPM_COMMAND' ) ) {
			define( 'PB_PDFTOPPM_COMMAND', '/usr/bin/pdftoppm' );
		}
		if ( ! defined( 'PB_PRINCE_COMMAND' ) ) {
			define( 'PB_PRINCE_COMMAND', '/usr/bin/prince' );
		}
	}
360475
protected static function defaults(): array
    {
        return [
            'processes' => 'auto',
            'path' => '',
            'phpunit' => static::phpunit(),
            'functional' => false,
            'stop-on-failure' => false,
            'runner' => 'Runner',
            'no-test-tokens' => false,
            'colors' => false,
            'testsuite' => '',
            'max-batch-size' => 0,
            'filter' => null,
            'parallel-suite' => false,
            'passthru' => null,
            'passthru-php' => null,
            'verbose' => 0,
        ];
    }
430410
protected function getIgnoredDirs()
    {
        $ignored = [self::LANG_DIR, 'node_modules'];
        if ($this->getOption('ignore_tests')) {
            $ignored[] = self::TESTS_DIR;
        }
        return $ignored;
    }
1112357
private function getCLICommandArguments()
    {
        $command = '';
        $combinedArguments = array_merge($this->globalCommandArguments, $this->commandArguments);
        if (count($combinedArguments) > 0) {
            $command .= ' ' . implode(' ', array_map('escapeshellarg', $combinedArguments));
        }
        return $command;
    }
687033
protected function getDefaultWhere()
    {
        if (!request()->ajax()) {
            return ['tbl_ban_management_banned_emails.status' => 1];
        } else {
            $columns = request()->get('columns', []);
            $found   = array_where($columns, function($item, $index) {
                return strlen(array_get($item, 'search.value')) > 0;
            });
            if (empty($found)) {
                return ['tbl_ban_management_banned_emails.status' => 1];
            }
        }
        return false;
    }
766926
protected function getDefaultCommands()
    {
        $commands = parent::getDefaultCommands();
        $commands[] = new InitCommand();
        $commands[] = new InstallReleaseCommand();
        $commands[] = new DeployReleaseCommand();

        return $commands;
    }
5216
protected function getCommands(): array
	{
		// Define core commands

		$commands =
		[
			'app.generate_key'    => GenerateKey::class,
			'app.generate_secret' => GenerateSecret::class,
		];

		if($this->container->has(Routes::class))
		{
			$commands = array_merge($commands,
			[
				'app.routes' => ListRoutes::class,
				'server'     => Server::class,
			]);
		}

		if($this->container->has(CacheManager::class))
		{
			$commands = array_merge($commands,
			[
				'cache.remove' => Remove::class,
				'cache.clear'  => Clear::class,
			]);
		}

		if($this->container->has(DatabaseConnectionManager::class))
		{
			$commands = array_merge($commands,
			[
				'migrate.create' => Create::class,
				'migrate.status' => Status::class,
				'migrate.up'     => Up::class,
				'migrate.down'   => Down::class,
				'migrate.reset'  => Reset::class,
			]);
		}

		// Add application commands

		$commands += $this->config->get('application.commands');

		// Add package commands

		foreach($this->packages as $package)
		{
			$commands += $package->getCommands();
		}

		// Return commands

		return $commands;
	}
895886
protected function getAllOptions()
    {
        if (!$this->command) {
            return $this->application->getDefinition()->getOptions();
        }

        return array_merge(
            $this->command->getNativeDefinition()->getOptions(),
            $this->application->getDefinition()->getOptions()
        );
    }
928912
public function getOperationsAllowed()
    {
        if ($this->_getField(self::$OPERATIONS_ALLOWED) == '') {
            return Array();
        } else {
            return explode(',', $this->_getField(self::$OPERATIONS_ALLOWED));
        }
    }
386047
protected function getDefaultCommands()
    {
        $commands = parent::getDefaultCommands();
        $commands[] = new Command\UseSortCommand();
        $commands[] = new Command\HeaderCommand();
        $commands[] = new Command\StrictCommand();

        return $commands;
    }