yiisoft /
demo
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace App\Handler; |
||
| 6 | |||
| 7 | use Psr\Http\Message\ResponseInterface; |
||
|
0 ignored issues
–
show
|
|||
| 8 | use Psr\Http\Message\ServerRequestInterface; |
||
|
0 ignored issues
–
show
The type
Psr\Http\Message\ServerRequestInterface 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 Loading history...
|
|||
| 9 | use Psr\Http\Server\RequestHandlerInterface; |
||
|
0 ignored issues
–
show
The type
Psr\Http\Server\RequestHandlerInterface 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 Loading history...
|
|||
| 10 | use Yiisoft\Http\Status; |
||
|
0 ignored issues
–
show
The type
Yiisoft\Http\Status 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 Loading history...
|
|||
| 11 | use Yiisoft\Yii\View\Renderer\ViewRenderer; |
||
|
0 ignored issues
–
show
The type
Yiisoft\Yii\View\Renderer\ViewRenderer 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 Loading history...
|
|||
| 12 | |||
| 13 | final class NotFoundHandler implements RequestHandlerInterface |
||
| 14 | { |
||
| 15 | private ViewRenderer $viewRenderer; |
||
| 16 | |||
| 17 | public function __construct(ViewRenderer $viewRenderer) |
||
| 18 | { |
||
| 19 | $this->viewRenderer = $viewRenderer->withControllerName('site'); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function handle(ServerRequestInterface $request): ResponseInterface |
||
| 23 | { |
||
| 24 | return $this->viewRenderer |
||
| 25 | ->render('404') |
||
| 26 | ->withStatus(Status::NOT_FOUND); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
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