Issues (74)

src/Context/HalModule.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BEAR\Package\Context;
6
7
use BEAR\Package\Provide\Representation\CreatedResourceRenderer;
8
use BEAR\Package\Provide\Representation\RouterReverseLink;
9
use BEAR\Package\Provide\Representation\RouterReverseLinker;
10
use BEAR\Resource\HalRenderer;
0 ignored issues
show
The type BEAR\Resource\HalRenderer 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...
11
use BEAR\Resource\RenderInterface;
12
use BEAR\Resource\ReverseLinkerInterface;
13
use BEAR\Resource\ReverseLinkInterface;
14
use Override;
15
use Ray\Di\AbstractModule;
16
17
final class HalModule extends AbstractModule
18
{
19
    /**
20
     * {@inheritDoc}
21
     */
22
    #[Override]
23
    protected function configure(): void
24
    {
25
        $this->bind(CreatedResourceRenderer::class);
26
        $this->bind(RenderInterface::class)->to(HalRenderer::class);
27
        $this->bind(ReverseLinkerInterface::class)->to(RouterReverseLinker::class);
28
        /** @psalm-suppress DeprecatedClass */
29
        $this->bind(ReverseLinkInterface::class)->to(RouterReverseLink::class);
30
    }
31
}
32