Passed
Push — master ( 592251...601870 )
by Melech
01:33
created

ComponentProvider::getContainerProviders()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
nc 1
nop 0
dl 0
loc 9
c 0
b 0
f 0
cc 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Valkyrja Framework package.
7
 *
8
 * (c) Melech Mizrachi <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Valkyrja\Http\Provider;
15
16
use Override;
0 ignored issues
show
Bug introduced by
The type Override 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...
17
use Valkyrja\Application\Provider\Provider as AppComponent;
18
use Valkyrja\Http\Client\Provider\ServiceProvider as ClientServiceProvider;
19
use Valkyrja\Http\Message\Provider\ServiceProvider as MessageServiceProvider;
20
use Valkyrja\Http\Middleware\Provider\ServiceProvider as MiddlewareServiceProvider;
21
use Valkyrja\Http\Routing\Cli\Command\ListCommand;
0 ignored issues
show
Bug introduced by
The type Valkyrja\Http\Routing\Cli\Command\ListCommand 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...
22
use Valkyrja\Http\Routing\Provider\ServiceProvider as RoutingServiceProvider;
23
use Valkyrja\Http\Server\Provider\ServiceProvider as ServerServiceProvider;
24
25
/**
26
 * Final Class Component.
27
 *
28
 * @author Melech Mizrachi
29
 */
30
class ComponentProvider extends AppComponent
31
{
32
    /**
33
     * @inheritDoc
34
     */
35
    #[Override]
36
    public static function getContainerProviders(): array
37
    {
38
        return [
39
            ClientServiceProvider::class,
40
            MessageServiceProvider::class,
41
            MiddlewareServiceProvider::class,
42
            RoutingServiceProvider::class,
43
            ServerServiceProvider::class,
44
        ];
45
    }
46
47
    /**
48
     * @inheritDoc
49
     */
50
    #[Override]
51
    public static function getCliControllers(): array
52
    {
53
        return [
54
            ListCommand::class,
55
        ];
56
    }
57
}
58