From f789607da3a4f0204468fa252c1ea4f59801608b Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sat, 8 Nov 2014 17:35:36 +0100 Subject: [PATCH] Configurator::addConfig() accepts arrays [Closes #25] --- src/Bootstrap/Configurator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bootstrap/Configurator.php b/src/Bootstrap/Configurator.php index f643cfd..6200fab 100644 --- a/src/Bootstrap/Configurator.php +++ b/src/Bootstrap/Configurator.php @@ -160,7 +160,7 @@ public function createRobotLoader() */ public function addConfig($file, $section = NULL) { - if ($section === NULL && $this->parameters['debugMode']) { // back compatibility + if ($section === NULL && is_string($file) && $this->parameters['debugMode']) { // back compatibility try { $loader = new DI\Config\Loader; $loader->load($file, $this->parameters['environment']);