1 | <?php |
||
2 | |||
3 | namespace TPaksu\TodoBar\Middleware; |
||
4 | |||
5 | use Closure; |
||
6 | use Illuminate\Container\Container; |
||
0 ignored issues
–
show
|
|||
7 | use Illuminate\Http\Response; |
||
0 ignored issues
–
show
The type
Illuminate\Http\Response 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 ![]() |
|||
8 | use TPaksu\TodoBar\Controllers\TodoBarController; |
||
9 | |||
10 | class TodoBarMiddleware { |
||
11 | |||
12 | /** |
||
13 | * Create a new middleware instance. |
||
14 | * |
||
15 | * @param Container $container |
||
16 | * @param LaravelDebugbar $debugbar |
||
0 ignored issues
–
show
The type
TPaksu\TodoBar\Middleware\LaravelDebugbar 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 | */ |
||
18 | public function __construct(Container $container, TodoBarController $todobar) |
||
19 | { |
||
20 | $this->container = $container; |
||
0 ignored issues
–
show
|
|||
21 | $this->todobar = $todobar; |
||
0 ignored issues
–
show
|
|||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Handle an incoming request. |
||
26 | * |
||
27 | * @param \Illuminate\Http\Request $request |
||
0 ignored issues
–
show
The type
Illuminate\Http\Request 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 ![]() |
|||
28 | * @param \Closure $next |
||
29 | * @return mixed |
||
30 | */ |
||
31 | public function handle($request, Closure $next) |
||
32 | { |
||
33 | $response = $next($request); |
||
34 | |||
35 | if ($response instanceof Response) { |
||
36 | $this->todobar->inject($response); |
||
37 | } |
||
38 | |||
39 | return $response; |
||
40 | } |
||
41 | } |
||
42 |
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