Skip to content

Commit

Permalink
EZP-29619: StashPass should check if config[caches] is set (#2450)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmadejski authored and andrerom committed Sep 19, 2018
1 parent 2a36848 commit 806d52d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ public function process(ContainerBuilder $container)

$config = $container->getExtensionConfig('stash');
$config = reset($config);
foreach ($config['caches'] as $name => $configuration) {
if (in_array('Redis', $configuration['drivers'], true)) {
$this->configureRedis($container, $igbinary, $lzf);
if (isset($config['caches'])) {
foreach ($config['caches'] as $name => $configuration) {
if (in_array('Redis', $configuration['drivers'], true)) {
$this->configureRedis($container, $igbinary, $lzf);
}
}
}

Expand Down

0 comments on commit 806d52d

Please sign in to comment.