File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ class AppExtension extends AbstractExtension
2929
3030 public function __construct (string $ locales )
3131 {
32+ // The $locales argument is injected thanks to the service container.
33+ // See https://symfony.com/doc/current/service_container.html#binding-arguments-by-name-or-type
3234 $ localeCodes = explode ('| ' , $ locales );
3335 sort ($ localeCodes );
3436 $ this ->localeCodes = $ localeCodes ;
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments