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()
...
;
}
public editCommand ( string $name ) : |
||
$name | string | The name of the command to edit. |
return | The command configuration. |
public function testEditCommand() { $this->config->addCommandConfig($config1 = new CommandConfig('command1')); $this->assertSame($config1, $this->config->editCommand('command1')); }