Skip to content

Commit

Permalink
adjust behat features for new settings in test env
Browse files Browse the repository at this point in the history
  • Loading branch information
ahilles107 committed Jul 12, 2019
1 parent 509b15a commit 8067419
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions DependencyInjection/SWPStorageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ public function load(array $configs, ContainerBuilder $container)
{
$this->processConfiguration(new Configuration(), $configs);
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
if ($container->hasParameter('swp.resources')) {
$loader->load('listeners.yml');
if (!$container->hasParameter('swp.resources')) {
$container->setParameter('swp.resources', []);
}

$loader->load('listeners.yml');
$loader->load('repositories.yml');
}
}

0 comments on commit 8067419

Please sign in to comment.