Adding Builder::getSystemConfig() to provide easy access to config.yml.
This commit is contained in:
parent
f0a5ba50ca
commit
7761d9fc08
|
@ -116,6 +116,16 @@ class Builder
|
||||||
return isset($this->config[$key]) ? $this->config[$key] : null;
|
return isset($this->config[$key]) ? $this->config[$key] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Access a variable from the config.yml
|
||||||
|
* @param $key
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getSystemConfig($key)
|
||||||
|
{
|
||||||
|
return \b8\Registry::getInstance()->get($key);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Access the build.
|
* Access the build.
|
||||||
* @param Build
|
* @param Build
|
||||||
|
|
Loading…
Reference in a new issue