@@ -66,12 +66,12 @@ |
||
66 | 66 | { |
67 | 67 | return [ |
68 | 68 | '_links' => ['self' => ['href' => $selfLink], |
69 | - 'curies' => [ |
|
70 | - ['name' => 'ap', |
|
71 | - 'href' => $this->urlGenerator->generate('api_hal_entrypoint').$this->docUri.'#section-{rel}', |
|
72 | - 'templated' => true, |
|
73 | - ], |
|
74 | - ], |
|
69 | + 'curies' => [ |
|
70 | + ['name' => 'ap', |
|
71 | + 'href' => $this->urlGenerator->generate('api_hal_entrypoint').$this->docUri.'#section-{rel}', |
|
72 | + 'templated' => true, |
|
73 | + ], |
|
74 | + ], |
|
75 | 75 | ], |
76 | 76 | ]; |
77 | 77 | } |
@@ -293,6 +293,7 @@ |
||
293 | 293 | * @param string $className |
294 | 294 | * @param mixed $value |
295 | 295 | * @param array $context |
296 | + * @param string|null $format |
|
296 | 297 | * |
297 | 298 | * @throws InvalidArgumentException |
298 | 299 | * |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor(); |
58 | 58 | $this->formats = $formats; |
59 | 59 | |
60 | - $this->setCircularReferenceHandler(function ($object) { |
|
60 | + $this->setCircularReferenceHandler(function($object) { |
|
61 | 61 | return $this->iriConverter->getIriFromItem($object); |
62 | 62 | }); |
63 | 63 | } |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $propertyMetadata = $this->propertyMetadataFactory->create($context['resource_class'], $propertyName, $options); |
194 | 194 | if ( |
195 | 195 | ((isset($context['jsonhal_normalize'])) && $propertyMetadata->isReadable()) || |
196 | - ((isset($context['jsonhal_denormalize'])) && $propertyMetadata->isWritable()) |
|
196 | + ((isset($context['jsonhal_denormalize'])) && $propertyMetadata->isWritable()) |
|
197 | 197 | ) { |
198 | 198 | $allowedAttributes[] = $propertyName; |
199 | 199 | } |
@@ -56,12 +56,12 @@ |
||
56 | 56 | { |
57 | 57 | return [ |
58 | 58 | '_links' => ['self' => ['href' => $referenceType ? $this->urlGenerator->generate('api_hal_entrypoint') : $linkUrl], |
59 | - 'curies' => [ |
|
60 | - ['name' => 'ap', |
|
61 | - 'href' => $this->urlGenerator->generate('api_hal_entrypoint').$this->docUri.'#section-{rel}', |
|
62 | - 'templated' => true, |
|
63 | - ], |
|
64 | - ], |
|
59 | + 'curies' => [ |
|
60 | + ['name' => 'ap', |
|
61 | + 'href' => $this->urlGenerator->generate('api_hal_entrypoint').$this->docUri.'#section-{rel}', |
|
62 | + 'templated' => true, |
|
63 | + ], |
|
64 | + ], |
|
65 | 65 | ], |
66 | 66 | ]; |
67 | 67 | } |