Skip to content

Commit 6ef14f7

Browse files
committed
Added documentation about enabling the MaxDepth exclusion strategy
1 parent 37af123 commit 6ef14f7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Resources/doc/3-listener-support.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,20 @@ public function getUsersAction()
141141
}
142142
```
143143

144+
Enabling the MaxDepth exclusion strategy support for the serializer can be configured as follows:
145+
146+
```php
147+
<?php
148+
149+
/**
150+
* @View(serializerEnableMaxDepthChecks=true)
151+
*/
152+
public function getUsersAction()
153+
{
154+
//...
155+
}
156+
```
157+
144158
See the following example code for more details:
145159
https://github.com/liip/LiipHelloBundle/blob/master/Controller/ExtraController.php
146160

0 commit comments

Comments
 (0)