Skip to content

Commit

Permalink
Merge 2.7 (#5337)
Browse files Browse the repository at this point in the history
* chore: switch from deprecated “loose” email validation mode to “html5” (#5326)

* chore: replace `Request::getContentType` with `Request::getContentTypeFormat` if available (#5325)

* fix: Set twig.exception_listener as service parent (#5059)

* fix(symfony): remove dependency on potentially inexistant `exception_listener` service

* define argument keys on service redefinition

* fix: avoid unneeded use of covariance to keep compatibility with PHP < 7.4 (#5327)

* fix(symfony): http cache wrong metadata argument

* chore: changelog 2.7.6

Co-authored-by: Mathieu <mathieu.lechat@les-tilleuls.coop>
Co-authored-by: Paul Andrieux <paul@appventus.com>
  • Loading branch information
3 people committed Jan 14, 2023
1 parent b5e1dc5 commit 02a4c78
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ Breaking changes:
* Serializer: `skip_null_values` now defaults to `true`
* Metadata: `Patch` is added to the automatic CRUD
* Symfony: generated route names and operation names changed, route naming can be changed directly within metadata

## v2.7.6

### Bug fixes

* [31215c623](https://github.com/api-platform/core/commit/31215c62365c6b9095486c307d29837e53c0357a) ci: fix mongod startup (#5248)
* [444f339ae](https://github.com/api-platform/core/commit/444f339ae8c73d2b1a23a703f44adbc6f8d52305) fix: avoid unneeded use of covariance to keep compatibility with PHP < 7.4 (#5327)
* [5baea781c](https://github.com/api-platform/core/commit/5baea781cf20249032fac337728da2f5617789db) fix(metadata): fix extra properties method (#5294)
* [a6f0d9aac](https://github.com/api-platform/core/commit/a6f0d9aac5b13c13694ebfa67e2a13b4a216c329) fix(symfony): http cache wrong metadata argument
* [ab6822f77](https://github.com/api-platform/core/commit/ab6822f775ab63070adaab68ae13adc01a6e3dd7) fix: Set twig.exception_listener as service parent (#5059)
* [f22fa73f4](https://github.com/api-platform/core/commit/f22fa73f41663f2c6a2391d3c1b8623098a51a0d) fix(elasticsearch): elasticsearch BC

## v2.7.5

Expand Down Expand Up @@ -1368,4 +1379,4 @@ Please read #2825 if you have issues with the behavior of Readable/Writable Link
## 1.0.0 beta 2

* Preserve indexes when normalizing and denormalizing associative arrays
* Allow setting default order for property when registering a `Doctrine\Orm\Filter\OrderFilter` instance
* Allow setting default order for property when registering a `Doctrine\Orm\Filter\OrderFilter` instance
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function supports(Request $request, ArgumentMetadata $argument): bool
return $inputClass === $class || is_subclass_of($inputClass, $class);
}

public function resolve(Request $request, ArgumentMetadata $argument): \Generator
public function resolve(Request $request, ArgumentMetadata $argument): iterable
{
if (interface_exists(ValueResolverInterface::class)) {
if (!$this->supports($request, $argument)) {
Expand Down
4 changes: 3 additions & 1 deletion src/Symfony/Bundle/Resources/config/api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@
</service>
<service id="ApiPlatform\Api\IriConverterInterface" alias="api_platform.symfony.iri_converter" />

<service id="api_platform.error_listener" class="ApiPlatform\Symfony\EventListener\ErrorListener" parent="exception_listener">
<service id="api_platform.error_listener" class="ApiPlatform\Symfony\EventListener\ErrorListener">
<argument key="$controller">api_platform.action.exception</argument>
<argument key="$logger" type="service" id="logger" on-invalid="null" />
<argument key="$debug">%kernel.debug%</argument>
</service>
</services>
</container>

0 comments on commit 02a4c78

Please sign in to comment.