Webmozart\Console\Api\Config\ApplicationConfig::getCommandConfigs PHP Method

getCommandConfigs() public method

Returns all registered command configurations.
See also: beginCommand()
public getCommandConfigs ( ) : CommandConfig[]
return CommandConfig[] The command configurations.
    public function getCommandConfigs()
    {
        return $this->commandConfigs;
    }

Usage Example

Ejemplo n.º 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());
 }