8000 Merge branch '4.4' into 5.0 · symfony/symfony-docs@48410b7 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 48410b7

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: [FrameworkBundle][Routing] Removed context in template route config example
2 parents 2e1e19b + 015b177 commit 48410b7

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

templates.rst

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,8 @@ Rendering a Template Directly from a Route
458458

459459
Although templates are usually rendered in controllers and services, you can
460460
render static pages that don't need any variables directly from the route
461-
definition. Use the special ``TemplateController`` provided by Symfony:
461+
definition. Use the special :class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController`
462+
provided by Symfony:
462463

463464
.. configuration-block::
464465

@@ -476,10 +477,6 @@ definition. Use the special ``TemplateController`` provided by Symfony:
476477
maxAge: 86400
477478
sharedAge: 86400
478479
479-
# optionally you can define some arguments passed to the template
480-
site_name: 'ACME'
8000 481-
theme: 'dark'
482-
483480
.. code-block:: xml
484481
485482
<!-- config/routes.xml -->
@@ -497,10 +494,6 @@ definition. Use the special ``TemplateController`` provided by Symfony:
497494
<!-- special options defined by Symfony to set the page cache -->
498495
<default key="maxAge">86400</default>
499496
<default key="sharedAge">86400</default>
500-
501-
<!-- optionally you can define some arguments passed to the template -->
502-
<default key="site_name">ACME</default>
503-
<default key="theme">dark</default>
504497
</route>
505498
</routes>
506499
@@ -520,10 +513,6 @@ definition. Use the special ``TemplateController`` provided by Symfony:
520513
// special options defined by Symfony to set the page cache
521514
'maxAge' => 86400,
522515
'sharedAge' => 86400,
523-
524-
// optionally you can define some arguments passed to the template
525-
'site_name' => 'ACME',
526-
'theme' => 'dark',
527516
])
528517
;
529518
};

0 commit comments

Comments
 (0)
0