HalModule   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 8 1
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
Bug introduced by
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