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 8cd1e4d + 9b88a4f commit 04b087fCopy full SHA for 04b087f
src/Factory/FilesystemFactory.php
@@ -28,18 +28,16 @@ class FilesystemFactory extends AbstractAdapterFactory
28
*/
29
public function getAdapter(array $config)
30
{
31
- return new FilesystemCachePool($config['flysystem']);
+ return new FilesystemCachePool($config['flysystem_service']);
32
}
33
34
/**
35
* {@inheritdoc}
36
37
protected static function configureOptionResolver(OptionsResolver $resolver)
38
39
- $resolver->setDefaults([
40
- 'flysystem_service' => null,
41
- ]);
+ $resolver->setRequired(['flysystem_service']);
42
43
- $resolver->setAllowedTypes('host', ['string', 'object']);
+ $resolver->setAllowedTypes('flysystem_service', ['string', 'object']);
44
45
0 commit comments