From 7761d9fc085293863e7c310cc2cc9d214524ea96 Mon Sep 17 00:00:00 2001 From: meadsteve Date: Sat, 1 Jun 2013 13:28:42 +0100 Subject: [PATCH] Adding Builder::getSystemConfig() to provide easy access to config.yml. --- PHPCI/Builder.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PHPCI/Builder.php b/PHPCI/Builder.php index a7b60bc1..1f98cf44 100644 --- a/PHPCI/Builder.php +++ b/PHPCI/Builder.php @@ -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