Adding Builder::getSystemConfig() to provide easy access to config.yml.

This commit is contained in:
meadsteve 2013-06-01 13:28:42 +01:00
parent f0a5ba50ca
commit 7761d9fc08

View file

@ -116,6 +116,16 @@ class Builder
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.
* @param Build