Skip to content

Commit

Permalink
Configurator::addConfig() accepts arrays [Closes #25]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 8, 2014
1 parent b1b0f7e commit f789607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bootstrap/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit f789607

Please sign in to comment.