Issues (27)

src/Components/EndpointsModifier.php (6 issues)

Labels
Severity
1
<?php
2
/**
3
 * Cluster endpoints modifier
4
 * User: moyo
5
 * Date: 2019-01-21
6
 * Time: 10:13
7
 */
8
9
namespace Carno\HRPC\Accel\Components;
10
11
use Carno\Console\Component;
0 ignored issues
show
The type Carno\Console\Component 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...
12
use Carno\Console\Contracts\Application;
0 ignored issues
show
The type Carno\Console\Contracts\Application 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...
13
use Carno\Console\Contracts\Bootable;
0 ignored issues
show
The type Carno\Console\Contracts\Bootable 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...
14
use Carno\Container\DI;
0 ignored issues
show
The type Carno\Container\DI 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...
15
use Carno\HRPC\Accel\Modifier\Router;
16
use Carno\HRPC\Client\Clustered;
0 ignored issues
show
The type Carno\HRPC\Client\Clustered 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 Carno\RPC\Contracts\Client\Cluster;
0 ignored issues
show
The type Carno\RPC\Contracts\Client\Cluster 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...
18
19
class EndpointsModifier extends Component implements Bootable
20
{
21
    /**
22
     * @var array
23
     */
24
    protected $dependencies = [Cluster::class];
25
26
    /**
27
     * @param Application $app
28
     */
29
    public function starting(Application $app) : void
30
    {
31
        /**
32
         * @var Clustered $clustered
33
         */
34
35
        $clustered = DI::get(Cluster::class);
36
37
        $clustered->modifier(new Router);
38
    }
39
}
40