|
@@ -9,7 +9,7 @@ discard block |
|
|
block discarded – undo |
|
9
|
9
|
* file that was distributed with this source code. |
|
10
|
10
|
*/ |
|
11
|
11
|
|
|
12
|
|
-declare(strict_types=1); |
|
|
12
|
+declare(strict_types = 1); |
|
13
|
13
|
|
|
14
|
14
|
namespace ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection\Compiler; |
|
15
|
15
|
|
|
@@ -55,7 +55,7 @@ discard block |
|
|
block discarded – undo |
|
55
|
55
|
$services = $this->findAndSortTaggedServices("api_platform.{$type}_data_provider", $container); |
|
56
|
56
|
|
|
57
|
57
|
foreach ($services as $reference) { |
|
58
|
|
- $definition = $container->getDefinition((string)$reference); |
|
|
58
|
+ $definition = $container->getDefinition((string) $reference); |
|
59
|
59
|
if (is_a($definition->getClass(), SerializerAwareDataProviderInterface::class, true)) { |
|
60
|
60
|
$definition->addMethodCall('setSerializerLocator', [new Reference('api_platform.serializer_locator')]); |
|
61
|
61
|
} |
Please login to merge, or discard this patch.