bluzphp /
skeleton
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * REST controller for OPTIONS method |
||
| 4 | * |
||
| 5 | * @category Application |
||
| 6 | * |
||
| 7 | * @author Anton Shevchuk |
||
| 8 | * @created 19.02.15 16:27 |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace Application; |
||
| 12 | |||
| 13 | use Bluz\Controller; |
||
|
0 ignored issues
–
show
|
|||
| 14 | use Bluz\Crud\Table; |
||
|
0 ignored issues
–
show
The type
Bluz\Crud\Table 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...
|
|||
| 15 | use Bluz\Http\StatusCode; |
||
|
0 ignored issues
–
show
The type
Bluz\Http\StatusCode 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...
|
|||
| 16 | use Bluz\Proxy\Response; |
||
|
0 ignored issues
–
show
The type
Bluz\Proxy\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 Loading history...
|
|||
| 17 | |||
| 18 | /** |
||
| 19 | * @accept HTML |
||
| 20 | * @accept JSON |
||
| 21 | * @method OPTIONS |
||
| 22 | * |
||
| 23 | * @param Table $crud |
||
| 24 | * @param mixed $primary |
||
| 25 | * @param array $data |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | return function (Table $crud, $primary, $data) { |
||
| 30 | Response::setStatusCode(StatusCode::NO_CONTENT); |
||
| 31 | 1 | Response::setHeader('Allow', implode(',', $data)); |
|
| 32 | }; |
||
| 33 |
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