Symfony\Component\Console\Application::getDefaultCommands PHP Метод

getDefaultCommands() защищенный Метод

Gets the default commands that should always be available.
protected getDefaultCommands ( ) : Command[]
Результат Symfony\Component\Console\Command\Command[] An array of default Command instances
    protected function getDefaultCommands()
    {
        return array(new HelpCommand(), new ListCommand());
    }

Usage Example

Пример #1
0
 /**
  * Initializes all the composer commands
  */
 protected function getDefaultCommands()
 {
     $commands = parent::getDefaultCommands();
     $commands[] = new Command\UseSortCommand();
     $commands[] = new Command\HeaderCommand();
     return $commands;
 }
All Usage Examples Of Symfony\Component\Console\Application::getDefaultCommands