Issues (61)

src/ProdQueryRepositoryModule.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\QueryRepository;
6
7
use BEAR\RepositoryModule\Annotation\KnownTagTtl;
8
use BEAR\RepositoryModule\Annotation\ResourceObjectPool;
9
use Override;
10
use Ray\Di\AbstractModule;
11
use Ray\PsrCacheModule\LocalCacheProvider;
0 ignored issues
show
The type Ray\PsrCacheModule\LocalCacheProvider 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
use Symfony\Component\Cache\Adapter\AdapterInterface;
13
14
final class ProdQueryRepositoryModule extends AbstractModule
15
{
16
    /**
17
     * {@inheritDoc}
18
     *
19
     * @see https://github.com/symfony/cache/blob/5.3/Adapter/TagAwareAdapter.php
20
     */
21
    #[Override]
22
    protected function configure(): void
23
    {
24
        // Bind ResourceObjectPool to local cache (APCu or File)
25
        $this->bind(AdapterInterface::class)->annotatedWith(ResourceObjectPool::class)->toProvider(LocalCacheProvider::class);
26
        // Boost the performance of symfony/cache
27
        $this->bind()->annotatedWith(KnownTagTtl::class)->toInstance(0.15);
28
    }
29
}
30