Issues (54)

src/Cdn/AkamaiModule.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\QueryRepository\Cdn;
6
7
use BEAR\QueryRepository\CdnCacheControlHeaderSetterInterface;
8
use Override;
9
use Ray\Di\AbstractModule;
10
11
/**
12
 * @see https://developer.akamai.com/blog/2019/03/28/technical-deep-dive-purging-cache-tag for Purging by Cache Tag
13
 * @see https://www.akamai.com/blog/news/targeted-cache-control for Akamai-Cache-Control
14
 * @see https://techdocs.akamai.com/purge-cache/reference/api for purge API
15
 */
16
final class AkamaiModule extends AbstractModule
17
{
18
    /**
19
     * {@inheritDoc}
20
     */
21
    #[Override]
22
    protected function configure(): void
23
    {
24
        $this->bind(CdnCacheControlHeaderSetterInterface::class)->to(AkamaiCacheControlHeaderSetter::class);
0 ignored issues
show
The type BEAR\QueryRepository\Cdn...acheControlHeaderSetter 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...
25
    }
26
}
27