PhpBench\Registry\ConfigurableRegistry::getConfig PHP Метод

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

Return the named configuration.
public getConfig ( $name ) : Config
Результат Config
    public function getConfig($name)
    {
        if (is_array($name)) {
            $config = $name;
            $name = uniqid();
            $this->setConfig($name, $config);
        }
        $name = trim($name);
        $name = $this->processRawCliConfig($name);
        if (!isset($this->configs[$name])) {
            throw new \InvalidArgumentException(sprintf('No %s configuration named "%s" exists. Known configurations: "%s"', $this->serviceType, $name, implode('", "', array_keys($this->configs))));
        }
        if (!isset($this->resolvedConfigs[$name])) {
            $this->resolveConfig($name);
        }
        return $this->resolvedConfigs[$name];
    }