This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle/Tests
Fabien Potencier 3cb5619216 feature #26108 [Serializer] Add a MaxDepth handler (dunglas)
This PR was squashed before being merged into the 4.1-dev branch (closes #26108).

Discussion
----------

[Serializer] Add a MaxDepth handler

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets | api-platform/core#1130, api-platform/core#1528, api-platform/core#1528 <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | todo <!--highly recommended for new features-->

Sometimes, instead of just stopping the serialization process when the configured max depth is reached, it can be interesting to let the user return something (like returning the identifier of the entity to stop manually the serialization process).

This PR also makes the max depth handling more similar to circular references handling (that already has the possibility to set a handler).

Commits
-------

ed975c764b [Serializer] Add a MaxDepth handler
2018-02-19 21:26:23 +01:00
..
CacheWarmer [FrameworkBundle] add a notice when passing a routerInterface with warmupInterface in RouterCacheWarmer 2018-01-24 17:07:17 +01:00
Command fixed some deprecation messages 2017-12-31 07:59:27 +01:00
Console Merge branch '2.8' into 3.4 2018-02-04 17:43:40 +01:00
Controller [FrameworkBundle] Add support to 307/308 HTTP status codes in RedirectController 2018-02-19 08:01:54 +01:00
DependencyInjection feature #26108 [Serializer] Add a MaxDepth handler (dunglas) 2018-02-19 21:26:23 +01:00
EventListener check _controller attribute is a string before parsing it 2017-07-10 18:12:17 +02:00
Fixtures Merge branch '2.8' into 3.4 2018-02-04 17:43:40 +01:00
Functional [WebProfilerBundle] Imply forward request by a new X-Previous-Debug-Token header 2018-02-12 18:43:33 +01:00
Kernel [FrameworkBundle] Make MicroKernelTraitTest green 2017-11-27 10:12:25 +01:00
Routing [FrameworkBundle][Routing] Use a PSR-11 container & parameter bag in FrameworkBundle Router 2017-12-09 16:16:33 +01:00
Templating Merge branch '3.4' 2017-10-13 18:40:22 +02:00
Translation Merge branch '3.3' into 3.4 2017-12-31 07:07:31 +01:00
ClientTest.php [FrameworkBundle] Allow to disable Kernel reboot 2015-03-20 11:50:15 +01:00
TestCase.php Update to PHPUnit namespaces 2017-02-18 08:02:39 -08:00