editCommand() публичный Метод

This method can be used to nicely edit a command inherited from a parent configuration using the fluent API: php protected function configure() { parent::configure(); $this ->editCommand('add') ... ->end() ... ; }
См. также: beginCommand()
public editCommand ( string $name ) : CommandConfig
$name string The name of the command to edit.
Результат CommandConfig The command configuration.
Пример #1
0
 public function testEditCommand()
 {
     $this->config->addCommandConfig($config1 = new CommandConfig('command1'));
     $this->assertSame($config1, $this->config->editCommand('command1'));
 }