Skip to content

Commit 90235ac

Browse files
committed
wip
1 parent e8e3f29 commit 90235ac

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Metadata/Property/Factory/PropertyInfoPropertyMetadataFactory.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Metadata\Property;
14+
namespace ApiPlatform\Metadata\Property\Factory;
1515

16-
use ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface;
1716
use ApiPlatform\Core\Metadata\Property\PropertyMetadata;
1817
use ApiPlatform\Exception\PropertyNotFoundException;
1918
use ApiPlatform\Metadata\ApiProperty;

src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ private function registerLegacyServices(ContainerBuilder $container, array $conf
870870
'api_platform.metadata.property.metadata_factory.xml' => 'ApiPlatform\Core\Metadata\Property\Factory\ExtractorPropertyMetadataFactory',
871871
'api_platform.metadata.property.metadata_factory.yaml' => 'ApiPlatform\Core\Metadata\Property\Factory\ExtractorPropertyMetadataFactory',
872872
'api_platform.metadata.property.metadata_factory.property_info' => 'ApiPlatform\Core\Bridge\Symfony\PropertyInfo\Metadata\Property\PropertyInfoPropertyMetadataFactory',
873-
'api_platform.doctrine.orm.metadata.property.metadata_factory' => 'ApiPlatform\Core\Bridge\Doctrine\Orm\Metadata\Property\DoctrineOrmPropertyMetadataFactory'
873+
'api_platform.doctrine.orm.metadata.property.metadata_factory' => 'ApiPlatform\Core\Bridge\Doctrine\Orm\Metadata\Property\DoctrineOrmPropertyMetadataFactory',
874+
'api_platform.metadata.property.identifier_metadata_factory.annotation' => 'ApiPlatform\Core\Metadata\Property\Factory\AnnotationPropertyMetadataFactory',
874875
];
875876

876877
foreach ($remapDefinitionClasses as $id => $class) {

src/Symfony/Bundle/Resources/config/metadata/resource_collection.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<!-- Property metadata used to compute identifiers -->
9595
<service id="api_platform.metadata.property.identifier_metadata_factory" alias="api_platform.metadata.property.identifier_metadata_factory.property_info" />
9696

97-
<service id="api_platform.metadata.property.identifier_metadata_factory.property_info" class="ApiPlatform\Metadata\Property\PropertyInfoPropertyMetadataFactory" public="false">
97+
<service id="api_platform.metadata.property.identifier_metadata_factory.property_info" class="ApiPlatform\Metadata\Property\Factory\PropertyInfoPropertyMetadataFactory" public="false">
9898
<argument type="service" id="api_platform.property_info" />
9999
</service>
100100

src/deprecation.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@
247247
ApiPlatform\Core\Bridge\Symfony\Messenger\DataTransformer::class => ApiPlatform\Symfony\Messenger\DataTransformer::class,
248248
ApiPlatform\Core\Bridge\Symfony\Messenger\RemoveStamp::class => ApiPlatform\Symfony\Messenger\RemoveStamp::class,
249249

250-
// Bridge\Symfony\PropertyInfo\Metadata\Property => Metadata\Property
251-
ApiPlatform\Core\Bridge\Symfony\PropertyInfo\Metadata\Property\PropertyInfoPropertyMetadataFactory::class => ApiPlatform\Metadata\Property\PropertyInfoPropertyMetadataFactory::class,
252-
ApiPlatform\Core\Bridge\Symfony\PropertyInfo\Metadata\Property\PropertyInfoPropertyNameCollectionFactory::class => ApiPlatform\Metadata\Property\PropertyInfoPropertyNameCollectionFactory::class,
250+
// Bridge\Symfony\PropertyInfo\Metadata\Property => Metadata\Property\Factory
251+
ApiPlatform\Core\Bridge\Symfony\PropertyInfo\Metadata\Property\PropertyInfoPropertyMetadataFactory::class => ApiPlatform\Metadata\Property\Factory\PropertyInfoPropertyMetadataFactory::class,
252+
ApiPlatform\Core\Bridge\Symfony\PropertyInfo\Metadata\Property\PropertyInfoPropertyNameCollectionFactory::class => ApiPlatform\Metadata\Property\Factory\PropertyInfoPropertyNameCollectionFactory::class,
253253

254254
// Bridge\Symfony\Routing
255255
ApiPlatform\Core\Bridge\Symfony\Routing\ApiLoader::class => ApiPlatform\Symfony\Routing\ApiLoader::class,

0 commit comments

Comments
 (0)