Skip to content

Commit

Permalink
Validate is array. (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Jan 23, 2017
1 parent 3b0b60f commit e1379f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ private function registerCommandsFromAutoWireConfiguration()
$autoWireForcedCommands = $configuration
->get('application.autowire.commands.forced');

if(!is_array($autoWireForcedCommands)){
return;
}

foreach ($autoWireForcedCommands as $autoWireForcedCommand) {
try {
if (!$autoWireForcedCommand['class']) {
Expand Down
3 changes: 2 additions & 1 deletion src/Utils/ConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ public function loadExtendConfiguration()
}
include_once $autoloadFile;
$extendFile = $directory . 'extend.console.config.yml';
if (is_file($extendFile)) {

if (is_file($extendFile) && file_get_contents($extendFile)!='') {
$builder = new YamlFileConfigurationBuilder([$extendFile]);
$this->configuration->import($builder->build());
}
Expand Down

0 comments on commit e1379f8

Please sign in to comment.