@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | class UploadAction |
30 | 30 | { |
31 | - public function __construct(private NormalizerInterface|PublishableNormalizer $publishableNormalizer) |
|
31 | + public function __construct(private NormalizerInterface | PublishableNormalizer $publishableNormalizer) |
|
32 | 32 | { |
33 | 33 | } |
34 | 34 |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | use DenormalizerAwareTrait; |
38 | 38 | use NormalizerAwareTrait; |
39 | 39 | |
40 | - private NormalizerInterface|SymfonyDataUriNormalizer $decorated; |
|
40 | + private NormalizerInterface | SymfonyDataUriNormalizer $decorated; |
|
41 | 41 | |
42 | - public function __construct(NormalizerInterface|SymfonyDataUriNormalizer $decorated) |
|
42 | + public function __construct(NormalizerInterface | SymfonyDataUriNormalizer $decorated) |
|
43 | 43 | { |
44 | 44 | $this->decorated = $decorated; |
45 | 45 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | return $this->decorated->supportsDenormalization($data, $type, $format, $context); |
64 | 64 | } |
65 | 65 | |
66 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
66 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
67 | 67 | { |
68 | 68 | return $this->decorated->normalize($object, $format, $context); |
69 | 69 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $this->propertyAccessor = PropertyAccess::createPropertyAccessor(); |
43 | 43 | } |
44 | 44 | |
45 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
45 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
46 | 46 | { |
47 | 47 | $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id'); |
48 | 48 | $this->resourceMetadata->setCollection(true); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $this->resourceMetadata->isInit(); |
62 | 62 | } |
63 | 63 | |
64 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
64 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
65 | 65 | { |
66 | 66 | $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id'); |
67 | 67 | $metadataContext = $context; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $this->propertyAccessor = PropertyAccess::createPropertyAccessor(); |
47 | 47 | } |
48 | 48 | |
49 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
49 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
50 | 50 | { |
51 | 51 | $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id'); |
52 | 52 | $this->resourceMetadata->setPersisted($this->entityManager->contains($object)); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $this->propertyAccessor = PropertyAccess::createPropertyAccessor(); |
43 | 43 | } |
44 | 44 | |
45 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
45 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
46 | 46 | { |
47 | 47 | $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id'); |
48 | 48 | $metadata = $this->pageDataMetadataFactory->create(\get_class($object)); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | $this->propertyAccessor = PropertyAccess::createPropertyAccessor(); |
68 | 68 | } |
69 | 69 | |
70 | - public function normalize($object, $format = null, array $context = []): float|array|\ArrayObject|bool|int|string|null |
|
70 | + public function normalize($object, $format = null, array $context = []): float | array | \ArrayObject | bool | int | string | null |
|
71 | 71 | { |
72 | 72 | $context[self::ALREADY_CALLED][] = $this->propertyAccessor->getValue($object, 'id'); |
73 | 73 |
@@ -1370,10 +1370,10 @@ |
||
1370 | 1370 | ->class(ResourceMetadataBuilder::class); |
1371 | 1371 | |
1372 | 1372 | $services->set(MercureResourcePublisher::class) |
1373 | - ->args([ |
|
1374 | - new Reference('mercure.hub.default'), |
|
1375 | - new Reference('api_platform.iri_converter'), |
|
1376 | - new Reference('api_platform.metadata.resource.metadata_collection_factory'), |
|
1377 | - ]) |
|
1378 | - ->call('setSerializer', [new Reference('serializer')]); |
|
1373 | + ->args([ |
|
1374 | + new Reference('mercure.hub.default'), |
|
1375 | + new Reference('api_platform.iri_converter'), |
|
1376 | + new Reference('api_platform.metadata.resource.metadata_collection_factory'), |
|
1377 | + ]) |
|
1378 | + ->call('setSerializer', [new Reference('serializer')]); |
|
1379 | 1379 | }; |