bytic /
dispatcher
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Nip\Dispatcher\Resolver\Pipeline; |
||
| 4 | |||
| 5 | use League\Pipeline\InterruptibleProcessor; |
||
| 6 | use League\Pipeline\PipelineBuilder as AbstractBuilder; |
||
| 7 | use League\Pipeline\PipelineInterface; |
||
| 8 | use League\Pipeline\ProcessorInterface; |
||
| 9 | use Nip\Dispatcher\Commands\Command; |
||
| 10 | use Nip\Dispatcher\Resolver\Pipeline\Stages\ActionCallStage; |
||
| 11 | use Nip\Dispatcher\Resolver\Pipeline\Stages\ClassInstanceStage; |
||
| 12 | use Nip\Dispatcher\Resolver\Pipeline\Stages\ClosureStage; |
||
| 13 | use Nip\Dispatcher\Resolver\Pipeline\Stages\InstanceReturnStage; |
||
|
0 ignored issues
–
show
|
|||
| 14 | use Nip\Dispatcher\Resolver\Pipeline\Stages\MethodCallStage; |
||
| 15 | use Nip\Dispatcher\Resolver\Pipeline\Stages\ModuleControllerStage; |
||
| 16 | use Nip\Dispatcher\Resolver\Pipeline\Stages\RequestStage; |
||
| 17 | use Nip\Dispatcher\Resolver\Pipeline\Stages\ResolverCacheStage; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Class InstanceBuilder |
||
| 21 | * @package Nip\Dispatcher\Resolver\Pipeline |
||
| 22 | */ |
||
| 23 | class InstanceBuilder extends AbstractBuilder |
||
| 24 | { |
||
| 25 | 1 | public function __construct() |
|
| 26 | { |
||
| 27 | 1 | $this->add(new ClosureStage()); |
|
| 28 | 1 | $this->add(new RequestStage()); |
|
| 29 | 1 | $this->add(new ResolverCacheStage()); |
|
| 30 | 1 | $this->add(new ModuleControllerStage()); |
|
| 31 | 1 | $this->add(new ClassInstanceStage()); |
|
| 32 | 1 | $this->add(new MethodCallStage()); |
|
| 33 | 1 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Build a new Pipeline object |
||
| 37 | * |
||
| 38 | * @param ProcessorInterface|null $processor |
||
| 39 | * |
||
| 40 | * @return PipelineInterface |
||
| 41 | */ |
||
| 42 | 1 | public function build(ProcessorInterface $processor = null): PipelineInterface |
|
| 43 | { |
||
| 44 | 1 | if ($processor == null) { |
|
| 45 | 1 | $processor = new InterruptibleProcessor( |
|
| 46 | function (Command $command) { |
||
| 47 | return !$command->hasReturn(); |
||
| 48 | 1 | } |
|
| 49 | ); |
||
| 50 | } |
||
| 51 | 1 | return parent::build($processor); |
|
| 52 | } |
||
| 53 | } |
||
| 54 |
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