Vincent
Vincent
- PHP 8.0.14 - Symfony 5.3.* > TypeError: App\Core\Api\IriConverter::__construct(): Argument #1 ($decorated) must be of type ApiPlatform\Core\Api\IriConverterInterface, ApiPlatform\Symfony\Routing\IriConverter given ```php # src/Core/Api/IriConverter.php use ApiPlatform\Core\Api\IriConverterInterface; final class IriConverter implements IriConverterInterface {...
- PHP 8.0.14 - Symfony 5.3.* > In deprecation.php line 483: > Warning: Undefined array key "ApiPlatform\Core\Serializer\SerializerContextBuilderInterface" Command executed: `bin/console debug:event kernel.request -vvv` Fix: replace `$deprecatedClasses` by `$deprecatedInterfaces` in `deprecation.php`...
- PHP 8.0.14 - Symfony 5.3.* Cannot retrieve collection operation attribute: ```php $operationName = $request->attributes->get('_api_collection_operation_name'); // api_broadcast_programmings_get_collection $resourceMetadata->getCollectionOperationAttribute($operationName, 'filters_expression'); // null ``` Collection operations: ``` array:1 [ "get" => array:9...
- PHP 8.0.14 - Symfony 5.3.* HTTP 400 invalid filters error message has changed from `"detail": "..."` to `"hydra:description": "..."`
- PHP 8.0.14 - Symfony 5.3.* > TypeError: Arte\Data\Bridge\ApiPlatform\DataProvider\Extension\PaginationExtension::__construct(): Argument #1 ($pagination) must be of type ApiPlatform\Core\DataProvider\Pagination, ApiPlatform\State\Pagination\Pagination given ```php # vendor/arte/data-bundle/src/Bridge/ApiPlatform/DataProvider/Extension/PaginationExtension.php use ApiPlatform\Core\DataProvider\Pagination; final class PaginationExtension implements CollectionExtensionInterface, ResultCollectionExtensionInterface...
- PHP 8.0.14 - Symfony 5.3.* > ApiPlatform\Exception\InvalidArgumentException: The filter class "Arte\Data\Bridge\ApiPlatform\DataProvider\Extension\Filter\SearchFilter" does not implement "ApiPlatform\Api\FilterInterface". Did you forget a use statement? ```php namespace Arte\Data\Bridge\ApiPlatform\DataProvider\Extension\Filter; use ApiPlatform\Core\Api\FilterInterface as ApiFilterInterface; interface...
> PHP Fatal error: Cannot declare class ApiPlatform\State\Pagination\Pagination, because the name is already in use in /path/to/vendor/api-platform/core/src/Core/DataProvider/Pagination.php on line 29
> You have requested a non-existent service "api_platform.doctrine.orm.metadata.property.metadata_factory" Replace ApiPlatformExtension.php:873 by the following: ```php if ($this->isConfigEnabled($container, $config['doctrine'])) { $remapDefinitionClasses['api_platform.doctrine.orm.metadata.property.metadata_factory'] = 'ApiPlatform\Core\Bridge\Doctrine\Orm\Metadata\Property\DoctrineOrmPropertyMetadataFactory'; } ```
> You have requested a non-existent service "api_platform.metadata.property.metadata_factory.legacy". Remove `api_platform.metadata.property.metadata_factory.xml` from `$remapDefinitionClasses` in ApiPlatformExtension.php, and add the following before the `$remapDefinitionClasses` declaration: ```php $container->getDefinition('api_platform.metadata.property.metadata_factory.xml')->setClass('ApiPlatform\Core\Metadata\Property\Factory\ExtractorPropertyMetadataFactory'); $container->setAlias('api_platform.metadata.property.metadata_factory.legacy', 'api_platform.metadata.property.metadata_factory.xml'); ```
> PHP Fatal error: During class fetch: Uncaught ReflectionException: Class "ApiPlatform\Core\Cache\CachedTrait" not found while loading "ApiPlatform\Core\Metadata\Property\Factory\CachedPropertyMetadataFactory". Replace `ApiPlatform\Core\Cache\CachedTrait` by `ApiPlatform\Util\CachedTrait` in CachedPropertyMetadataFactory.php.