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
Symlex controllers are plain PHP classes by default. They are configured as public services either in `app/config/web.yml` (HTML) or `app/config/rest.yml` (REST):
The routers pass on the request instance to each matched controller action as last argument. It contains request parameters and headers as described on the [Symfony documentation](http://symfony.com/doc/current/book/http_fundamentals.html#requests-and-responses-in-symfony).
- **null**: Matching Twig template will be rendered
28
-
- an **array**: Twig template can access those values as variables
29
-
- a **string**: User will be redirected to URL
30
-
- or a `Symfony\Component\HttpFoundation\Response` object
31
-
32
-
Twig's template base directory can be configured in `app/config/twig.yml` (`twig.path`). The template filename is matching the request route: `[twig.path]/[controller]/[action].twig`.
0 commit comments