We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bceb35b + edcb148 commit a68b11eCopy full SHA for a68b11e
src/Factory/ChainFactory.php
@@ -12,6 +12,7 @@
12
namespace Cache\AdapterBundle\Factory;
13
14
use Cache\Adapter\Chain\CachePoolChain;
15
+use Symfony\Component\OptionsResolver\OptionsResolver;
16
17
/**
18
* @author Aaron Scherer <[email protected]>
@@ -27,6 +28,17 @@ class ChainFactory extends AbstractAdapterFactory
27
28
*/
29
public function getAdapter(array $config)
30
{
- return new CachePoolChain($config);
31
+ return new CachePoolChain($config['services']);
32
+ }
33
+
34
+ /**
35
+ * {@inheritdoc}
36
+ */
37
+ protected static function configureOptionResolver(OptionsResolver $resolver)
38
+ {
39
+ parent::configureOptionResolver($resolver);
40
41
+ $resolver->setRequired('services');
42
+ $resolver->setAllowedTypes('services', ['array']);
43
}
44
0 commit comments