bakaphp /
phalcon-api
| 1 | <?php |
||
| 2 | |||
| 3 | use Baka\Router\RouteGroup; |
||
|
0 ignored issues
–
show
|
|||
| 4 | use Baka\Router\Route; |
||
|
0 ignored issues
–
show
The type
Baka\Router\Route 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...
|
|||
| 5 | |||
| 6 | $routes = [ |
||
| 7 | Route::get('/')->controller('IndexController'), |
||
| 8 | Route::get('/status')->controller('IndexController')->action('status'), |
||
| 9 | ]; |
||
| 10 | |||
| 11 | $routeGroup = RouteGroup::from($routes) |
||
| 12 | ->defaultNamespace('Gewaer\Api\Controllers') |
||
| 13 | 71 | ->defaultPrefix('/v1'); |
|
| 14 | 71 | ||
| 15 | return $routeGroup->toCollections(); |
||
| 16 |
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