1 | <?php |
||
2 | |||
3 | /** |
||
4 | * Cache configuration |
||
5 | * |
||
6 | * @link https://github.com/bluzphp/framework/wiki/Cache |
||
7 | * @return array |
||
8 | */ |
||
9 | |||
10 | return [ |
||
11 | 'enabled' => true, |
||
12 | 'adapter' => 'filesystem', |
||
13 | 'pools' => [ |
||
14 | /** |
||
15 | * @link https://symfony.com/doc/current/components/cache/adapters/apcu_adapter.html |
||
16 | */ |
||
17 | 'apcu' => function () { |
||
18 | return new Symfony\Component\Cache\Adapter\ApcuAdapter('bluz'); |
||
0 ignored issues
–
show
|
|||
19 | }, |
||
20 | /** |
||
21 | * @link https://symfony.com/doc/current/components/cache/adapters/filesystem_adapter.html |
||
22 | */ |
||
23 | 'filesystem' => function () { |
||
24 | return new Symfony\Component\Cache\Adapter\FilesystemTagAwareAdapter('bluz', 0, PATH_DATA . '/cache'); |
||
0 ignored issues
–
show
The type
Symfony\Component\Cache\...lesystemTagAwareAdapter was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
25 | }, |
||
26 | /** |
||
27 | * @link https://symfony.com/doc/current/components/cache/adapters/redis_adapter.html |
||
28 | * @link https://github.com/nrk/predis/wiki/Connection-Parameters |
||
29 | * @link https://github.com/nrk/predis/wiki/Client-Options |
||
30 | */ |
||
31 | 'predis' => function () { |
||
32 | $client = new \Predis\Client('tcp:/127.0.0.1:6379'); |
||
0 ignored issues
–
show
The type
Predis\Client was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
33 | return new Symfony\Component\Cache\Adapter\RedisTagAwareAdapter($client, 'bluz'); |
||
0 ignored issues
–
show
The type
Symfony\Component\Cache\...er\RedisTagAwareAdapter was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
34 | } |
||
35 | ] |
||
36 | ]; |
||
37 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths