You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/controllers.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,17 @@ controllers can be any valid [Symfony controller](https://symfony.com/doc/curren
8
8
Symfony controllers extending the [`Symfony\Bundle\FrameworkBundle\Controller\AbstractController`](http://api.symfony.com/4.1/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.html)
9
9
helper class.
10
10
11
+
To enable this feature use `use_symfony_listeners: true` in your `api_platform` configuration file:
12
+
13
+
```yaml
14
+
api_platform:
15
+
title: 'My Dummy API'
16
+
description: |
17
+
This is a test API.
18
+
Made with love
19
+
use_symfony_listeners: true
20
+
```
21
+
11
22
However, API Platform recommends to use **action classes** instead of typical Symfony controllers. Internally, API Platform
12
23
implements the [Action-Domain-Responder](https://github.com/pmjones/adr) pattern (ADR), a web-specific refinement of
0 commit comments