Skip to content

Commit

Permalink
Reset to base configuration as fallback in invalid configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
shakaran committed Oct 3, 2017
1 parent b810f38 commit a419d31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DependencyInjection/AvanzuAdminThemeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ public function load(array $configs, ContainerBuilder $container)
}
catch(InvalidConfigurationException $e)
{
echo 'AvanzuAdminBundle:' . $e->getMessage() . PHP_EOL;
$configs = [];
echo 'AvanzuAdminBundle: invalid config: ' . $e->getMessage() . PHP_EOL;
// Fallback: ignore invalid config from the container user config file and use default values from base configuration
$configs = $baseConfiguration;
}

$config = $this->processConfiguration($baseConfiguration, $configs);
Expand Down

0 comments on commit a419d31

Please sign in to comment.