Skip to content

Commit e3f228a

Browse files
soyukadunglas
authored andcommitted
Changelog 2.4 beta 2 (#2556)
* namespace typo identifier converter * 2.4 beta 2 changelog
1 parent ea5bc7c commit e3f228a

File tree

2 files changed

+54
-15
lines changed

2 files changed

+54
-15
lines changed

CHANGELOG.md

Lines changed: 53 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
# Changelog
22

3+
## 2.4.0 beta 2
4+
5+
* Fix version constraints for Doctrine MongoDB ODM
6+
* Respect `_api_respond` request attribute in the SerializeListener
7+
* Change the normalizer's priorities (`< 0`). If you have custom normalizer we recommend to use positive priorities.
8+
9+
| Service name | Priority | Class |
10+
|------------------------------------------------------------|------|---------------------------------------------------------|
11+
| api_platform.hydra.normalizer.constraint_violation_list | -780 | ApiPlatform\Core\Hydra\Serializer\ConstraintViolationListNormalizer
12+
| api_platform.jsonapi.normalizer.constraint_violation_list | -780 | ApiPlatform\Core\JsonApi\Serializer\ConstraintViolationListNormalizer
13+
| api_platform.problem.normalizer.constraint_violation_list | -780 | ApiPlatform\Core\Problem\Serializer\ConstraintViolationListNormalizer
14+
| api_platform.swagger.normalizer.api_gateway | -780 | ApiPlatform\Core\Swagger\Serializer\ApiGatewayNormalizer
15+
| api_platform.hal.normalizer.collection | -790 | ApiPlatform\Core\Hal\Serializer\CollectionNormalizer
16+
| api_platform.hydra.normalizer.collection_filters | -790 | ApiPlatform\Core\Hydra\Serializer\CollectionFiltersNormalizer
17+
| api_platform.jsonapi.normalizer.collection | -790 | ApiPlatform\Core\JsonApi\Serializer\CollectionNormalizer
18+
| api_platform.jsonapi.normalizer.error | -790 | ApiPlatform\Core\JsonApi\Serializer\ErrorNormalizer
19+
| api_platform.hal.normalizer.entrypoint | -800 | ApiPlatform\Core\Hal\Serializer\EntrypointNormalizer
20+
| api_platform.hydra.normalizer.documentation | -800 | ApiPlatform\Core\Hydra\Serializer\DocumentationNormalizer
21+
| api_platform.hydra.normalizer.entrypoint | -800 | ApiPlatform\Core\Hydra\Serializer\EntrypointNormalizer
22+
| api_platform.hydra.normalizer.error | -800 | ApiPlatform\Core\Hydra\Serializer\ErrorNormalizer
23+
| api_platform.jsonapi.normalizer.entrypoint | -800 | ApiPlatform\Core\JsonApi\Serializer\EntrypointNormalizer
24+
| api_platform.problem.normalizer.error | -810 | ApiPlatform\Core\Problem\Serializer\ErrorNormalizer
25+
| serializer.normalizer.json_serializable | -900 | Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer
26+
| serializer.normalizer.datetime | -910 | Symfony\Component\Serializer\Normalizer\DateTimeNormalizer
27+
| serializer.normalizer.constraint_violation_list | -915 | Symfony\Component\Serializer\Normalizer\ConstraintViolationListNormalizer
28+
| serializer.normalizer.dateinterval | -915 | Symfony\Component\Serializer\Normalizer\DateIntervalNormalizer
29+
| serializer.normalizer.data_uri | -920 | Symfony\Component\Serializer\Normalizer\DataUriNormalizer
30+
| api_platform.graphql.normalizer.item | -922 | ApiPlatform\Core\GraphQl\Serializer\ItemNormalizer
31+
| api_platform.hal.normalizer.item | -922 | ApiPlatform\Core\Hal\Serializer\ItemNormalizer
32+
| api_platform.jsonapi.normalizer.item | -922 | ApiPlatform\Core\JsonApi\Serializer\ItemNormalizer
33+
| api_platform.jsonld.normalizer.item | -922 | ApiPlatform\Core\JsonLd\Serializer\ItemNormalizer
34+
| api_platform.serializer.normalizer.item | -923 | ApiPlatform\Core\Serializer\ItemNormalizer
35+
| serializer.normalizer.object | -1000 | Symfony\Component\Serializer\Normalizer\ObjectNormalizer
36+
37+
* Allow custom stylesheets to be appended or replaced in the swagger UI
38+
* Load messenger only if available
39+
* Fix missing metadata cache pool for Elasticsearch
40+
* Make use of the new AdvancedNameConverterInterface interface for name converters
41+
* Refactor input/output attributes, where these attributes now take:
42+
- an array specifying a class and some specific attributes (`name` and `iri` if needed)
43+
- a string representing the class
44+
- a `falsy` boolean to disable the input/output
45+
* Introduce the DataTransformer concept to transform an input/output from/to a resource
46+
* Api Platform normalizer is not limited to Resources anymore (you can use DTO as relations and more...)
47+
* MongoDB: allow a `0` limit in the pagination
48+
* Fix support of a discriminator mapping in an entity
49+
350
## 2.4.0 beta 1
451

552
* MongoDB: full support
@@ -203,7 +250,7 @@
203250

204251
## 2.2.2
205252

206-
* Autoregister classes implementing `SubresourceDataProviderInterface`
253+
* Autoregister classes implementing `SubresourceDataProviderInterface`
207254
* Fix the `DateTimeImmutable` support in the date filter
208255
* Fix a BC break in `DocumentationAction` impacting NelmioApiDoc
209256
* Fix the context passed to data providers (improve the eager loading)
@@ -233,9 +280,9 @@
233280
* Remove the `api_platform.doctrine.listener.view.write` event listener service.
234281
* Add a data persistence layer with a new `ApiPlatform\Core\DataPersister\DataPersisterInterface` interface.
235282
* Add the a new configuration to disable the API entrypoint and the documentation
236-
* Allow to set maximum items per page at operation/resource level
283+
* Allow to set maximum items per page at operation/resource level
237284
* Add the ability to customize the message when configuring an access control rule trough the `access_control_message` attribute
238-
* Allow empty operations in XML configs
285+
* Allow empty operations in XML configs
239286

240287
## 2.1.6
241288

@@ -262,14 +309,14 @@
262309
## 2.1.4
263310

264311
* Symfony 3.4 and 4.0 compatibility
265-
* Autowiring strict mode compatibility
312+
* Autowiring strict mode compatibility
266313
* Fix a bug preventing to create resource classes in the global namespace
267314
* Fix Doctrine type conversion in filter's WHERE clauses
268315
* Fix filters when using eager loading and non-association composite identifier
269-
* Fix Doctrine type resolution for identifiers (for custom DBALType)
316+
* Fix Doctrine type resolution for identifiers (for custom DBALType)
270317
* Add missing Symfony Routing options to operations configuration
271318
* Add SubresourceOperations to metadata
272-
* Fix disabling of cache pools with the dev environment
319+
* Fix disabling of cache pools with the dev environment
273320

274321
## 2.1.3
275322

src/Identifier/ContextAwareIdentifierConverterInterface.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,10 @@
1414
namespace ApiPlatform\Core\Identifier;
1515

1616
/**
17-
* Identifier converter.
17+
* Gives access to the context in the IdentifierConverter.
1818
*
1919
* @author Antoine Bluchet <[email protected]>
2020
*/
21-
22-
namespace ApiPlatform\Core\Identifier;
23-
24-
/**
25-
* Gives access to the context.
26-
*
27-
* @author Kévin Dunglas <[email protected]>
28-
*/
2921
interface ContextAwareIdentifierConverterInterface extends IdentifierConverterInterface
3022
{
3123
/**

0 commit comments

Comments
 (0)