Skip to content

Commit

Permalink
config handler config files will be seperated by the file name of the…
Browse files Browse the repository at this point in the history
… config file: filename.arraykey.arraykey
  • Loading branch information
Herant Awadisan committed Apr 18, 2018
1 parent a42363f commit c3fb162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/Core/Input/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function register(\Pimple\Container $pimple) {
continue;
}

$configVars[] = include $fileinfo->getPathname();
$configVars[strstr($fileinfo->getFilename(), '.', true)] = include $fileinfo->getPathname();
}
$pimple['config-handler'] = function() use ($configVars) {
return new \Adbar\Dot($configVars);
Expand Down

0 comments on commit c3fb162

Please sign in to comment.