Acacha\Llum\Console\LlumCommand::configure PHP Method

configure() protected method

Configure the command options.
protected configure ( )
    protected function configure()
    {
        $command = new ConsoleCommand();
        $command->name($this->commandName)->description($this->commandDescription);
        if ($this->argument != null) {
            $command->argument(['name' => $this->argument, 'description' => $this->argumentDescription, 'type' => $this->argumentType]);
        }
        $this->configureCommand($command);
    }

Usage Example

Example #1
0
 /**
  * Configure command.
  */
 public function configure()
 {
     parent::configure();
     $this->addArgument('name', InputArgument::OPTIONAL, 'Repository name')->addArgument('description', InputArgument::OPTIONAL, 'Repository description');
 }
All Usage Examples Of Acacha\Llum\Console\LlumCommand::configure