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

ComponentProvider::getCliControllers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
nc 1
nop 0
dl 0
loc 8
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\Cli\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\Cli\Command\HelpCommand;
0 ignored issues
show
Bug introduced by
The type Valkyrja\Cli\Command\HelpCommand 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...
19
use Valkyrja\Cli\Command\ListBashCommand;
0 ignored issues
show
Bug introduced by
The type Valkyrja\Cli\Command\ListBashCommand 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...
20
use Valkyrja\Cli\Command\ListCommand;
0 ignored issues
show
Bug introduced by
The type Valkyrja\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...
21
use Valkyrja\Cli\Command\VersionCommand;
0 ignored issues
show
Bug introduced by
The type Valkyrja\Cli\Command\VersionCommand 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\Cli\Interaction\Provider\ServiceProvider as CliServiceProvider;
23
use Valkyrja\Cli\Middleware\Provider\ServiceProvider as MiddlewareServiceProvider;
24
use Valkyrja\Cli\Routing\Provider\ServiceProvider as RoutingServiceProvider;
25
use Valkyrja\Cli\Server\Provider\ServiceProvider as ServerServiceProvider;
26
27
/**
28
 * Final Class Component.
29
 *
30
 * @author Melech Mizrachi
31
 */
32
class ComponentProvider extends AppComponent
33
{
34
    /**
35
     * @inheritDoc
36
     */
37
    #[Override]
38
    public static function getContainerProviders(): array
39
    {
40
        return [
41
            CliServiceProvider::class,
42
            MiddlewareServiceProvider::class,
43
            RoutingServiceProvider::class,
44
            ServerServiceProvider::class,
45
        ];
46
    }
47
48
    /**
49
     * @inheritDoc
50
     */
51
    #[Override]
52
    public static function getCliControllers(): array
53
    {
54
        return [
55
            HelpCommand::class,
56
            ListBashCommand::class,
57
            ListCommand::class,
58
            VersionCommand::class,
59
        ];
60
    }
61
}
62