Skip to content

Commit 699fc5d

Browse files
author
Antoine Makdessi
committed
Add some doc for Twig Extension
1 parent 77a47d3 commit 699fc5d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Twig/AppExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class AppExtension extends AbstractExtension
2929

3030
public function __construct(string $locales)
3131
{
32+
// See config/services.yaml for default $locales binding
3233
$localeCodes = explode('|', $locales);
3334
sort($localeCodes);
3435
$this->localeCodes = $localeCodes;

src/Twig/SourceCodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* CAUTION: this is an extremely advanced Twig extension. It's used to get the
2222
* source code of the controller and the template used to render the current
2323
* page. If you are starting with Symfony, don't look at this code and consider
24-
* studying instead the code of the src/App/Twig/AppExtension.php extension.
24+
* studying instead the code of the src/Twig/AppExtension.php extension.
2525
*
2626
* @author Ryan Weaver <weaverryan@gmail.com>
2727
* @author Javier Eguiluz <javier.eguiluz@gmail.com>

0 commit comments

Comments
 (0)