apie-lib /
primary-key-plugin
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Apie\PrimaryKeyPlugin\Schema; |
||
| 5 | |||
| 6 | use Apie\Core\PluginInterfaces\DynamicSchemaInterface; |
||
| 7 | use Apie\Core\PluginInterfaces\FrameworkConnectionInterface; |
||
| 8 | use Apie\OpenapiSchema\Factories\SchemaFactory; |
||
| 9 | use W2w\Lib\Apie\OpenApiSchema\OpenApiSchemaGenerator; |
||
|
0 ignored issues
–
show
|
|||
| 10 | |||
| 11 | class ApiResourceLinkSchemaBuilder implements DynamicSchemaInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var FrameworkConnectionInterface |
||
| 15 | */ |
||
| 16 | private $connection; |
||
| 17 | |||
| 18 | public function __construct(FrameworkConnectionInterface $connection) |
||
| 19 | { |
||
| 20 | $this->connection = $connection; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritDoc} |
||
| 25 | */ |
||
| 26 | public function __invoke( |
||
| 27 | string $resourceClass, |
||
| 28 | string $operation, |
||
| 29 | array $groups, |
||
| 30 | int $recursion, |
||
| 31 | OpenApiSchemaGenerator $generator |
||
| 32 | ): ?Schema { |
||
|
0 ignored issues
–
show
The type
Apie\PrimaryKeyPlugin\Schema\Schema 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...
|
|||
| 33 | if ($recursion > 0 && $operation === 'get') { |
||
| 34 | return SchemaFactory::createStringSchema( |
||
|
0 ignored issues
–
show
|
|||
| 35 | 'path', |
||
| 36 | $this->connection->getExampleUrl($resourceClass), |
||
| 37 | true |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | return $generator->createSchema($resourceClass, $operation, $groups); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
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