Skip to content

Commit b4fc0e6

Browse files
committed
Merge pull request #37 from thomasglachant/master
Add skipOnFailure argument to CachePoolChain
2 parents dbb7862 + 1bb66c7 commit b4fc0e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ phpunit.xml
33
vendor
44
composer.lock
55
/composer.phar
6-
7-

src/Factory/ChainFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ChainFactory extends AbstractAdapterFactory
2828
*/
2929
public function getAdapter(array $config)
3030
{
31-
return new CachePoolChain($config['services']);
31+
return new CachePoolChain($config['services'], ['skip_on_failure' => $config['skipOnFailure']]);
3232
}
3333

3434
/**
@@ -40,5 +40,7 @@ protected static function configureOptionResolver(OptionsResolver $resolver)
4040

4141
$resolver->setRequired('services');
4242
$resolver->setAllowedTypes('services', ['array']);
43+
44+
$resolver->setDefault('skipOnFailure', false);
4345
}
4446
}

0 commit comments

Comments
 (0)