1 | <?php |
||
2 | /** |
||
3 | * Serving extension |
||
4 | * User: moyo |
||
5 | * Date: 2019-01-15 |
||
6 | * Time: 19:25 |
||
7 | */ |
||
8 | |||
9 | namespace Carno\HRPC\Accel; |
||
10 | |||
11 | use Carno\Console\Bootstrap; |
||
0 ignored issues
–
show
|
|||
12 | use Carno\Console\Configure; |
||
0 ignored issues
–
show
The type
Carno\Console\Configure 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
13 | use Carno\HRPC\Accel\Components\EndpointsModifier; |
||
14 | use Carno\HRPC\Accel\Plugins\ServerPorting; |
||
15 | use Carno\Net\Address; |
||
16 | use Carno\Serving\Contracts\Extensions; |
||
0 ignored issues
–
show
The type
Carno\Serving\Contracts\Extensions 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
17 | use Carno\Serving\Extension\Components; |
||
0 ignored issues
–
show
The type
Carno\Serving\Extension\Components 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
18 | use Carno\Serving\Extension\Plugins; |
||
0 ignored issues
–
show
The type
Carno\Serving\Extension\Plugins 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
19 | use Symfony\Component\Console\Input\InputOption; |
||
0 ignored issues
–
show
The type
Symfony\Component\Console\Input\InputOption 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
20 | |||
21 | class Extension implements Extensions |
||
22 | { |
||
23 | /** |
||
24 | * @param Configure $conf |
||
25 | */ |
||
26 | public function options(Configure $conf) : void |
||
27 | { |
||
28 | $conf->addOption('hrpc-accel', null, InputOption::VALUE_OPTIONAL, 'TCP accelerator listen bind', ':0'); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param Bootstrap $boot |
||
33 | * @return Plugins |
||
34 | */ |
||
35 | public function plugins(Bootstrap $boot) : Plugins |
||
36 | { |
||
37 | return new Plugins( |
||
38 | new ServerPorting(new Address($boot->app()->input()->getOption('hrpc-accel'))) |
||
39 | ); |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return Components |
||
44 | */ |
||
45 | public function components() : Components |
||
46 | { |
||
47 | return new Components( |
||
48 | EndpointsModifier::class |
||
49 | ); |
||
50 | } |
||
51 | } |
||
52 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths