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

Sets the command configurations of the application.
См. также: beginCommand()
public setCommandConfigs ( array $configs ) : static
$configs array The command configurations.
Результат static The current instance.
Пример #1
0
 public function testSetCommandConfigs()
 {
     $this->config->addCommandConfig($config1 = new CommandConfig('command1'));
     $this->config->setCommandConfigs(array($config2 = new CommandConfig('command2'), $config3 = new CommandConfig('command3')));
     $this->assertSame(array($config2, $config3), $this->config->getCommandConfigs());
 }