Forráskód Böngészése

remove api_platform.cache.metadata.identifier

Maha Bouchiba 2 éve
szülő
commit
19eded51c5

+ 4 - 0
config/packages/ramsey_uuid_doctrine.yaml

@@ -0,0 +1,4 @@
+doctrine:
+    dbal:
+        types:
+            uuid: 'Ramsey\Uuid\Doctrine\UuidType'

+ 0 - 13
config/services.yaml

@@ -24,19 +24,6 @@ services:
         parent: cache.system
         tags: [ cache.pool ]
 
-    # May have to be removed soon when api-platform removes these services
-    # see vendor/api-platform/core/src/Symfony/Bundle/Resources/config/metadata/property.xml:41
-    api_platform.cache.metadata.identifier:
-        parent: cache.adapter.array
-        tags: [ cache.pool ]
-    api_platform.metadata.property.identifier_metadata_factory.cached:
-        class: ApiPlatform\Metadata\Property\Factory\CachedPropertyMetadataFactory
-        decorates: api_platform.metadata.property.identifier_metadata_factory
-        decoration_priority: 99
-        arguments:
-            - '@api_platform.cache.metadata.identifier'
-            - '@api_platform.metadata.property.identifier_metadata_factory.cached.inner'
-
     ########### End Speeds up api-platform cache build substantially ###########
 
     # default configuration for services in *this* file

+ 17 - 0
src/DataFixtures/AppFixtures.php

@@ -0,0 +1,17 @@
+<?php
+
+namespace App\DataFixtures;
+
+use Doctrine\Bundle\FixturesBundle\Fixture;
+use Doctrine\Persistence\ObjectManager;
+
+class AppFixtures extends Fixture
+{
+    public function load(ObjectManager $manager): void
+    {
+        // $product = new Product();
+        // $manager->persist($product);
+
+        $manager->flush();
+    }
+}