From 80ad10481863e78e3a904609599ffd8ab131450d Mon Sep 17 00:00:00 2001 From: sebpacz Date: Sun, 18 Apr 2021 13:09:27 +0200 Subject: [PATCH] Minor fixes --- controller.rst | 2 +- introduction/from_flat_php_to_symfony.rst | 2 +- page_creation.rst | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controller.rst b/controller.rst index ef3c3987a96..ec20a05daa8 100644 --- a/controller.rst +++ b/controller.rst @@ -271,7 +271,7 @@ the argument by its name: ->addTag('controller.service_arguments') ->setBindings([ '$logger' => new Reference('monolog.logger.doctrine'), - '$projectDir' => '%kernel.project_dir%' + '$projectDir' => '%kernel.project_dir%', ]) ; diff --git a/introduction/from_flat_php_to_symfony.rst b/introduction/from_flat_php_to_symfony.rst index bae9ee9a8dc..bbfd252de7c 100644 --- a/introduction/from_flat_php_to_symfony.rst +++ b/introduction/from_flat_php_to_symfony.rst @@ -528,7 +528,7 @@ The Sample Application in Symfony The blog has come a *long* way, but it still contains a lot of code for such a basic application. Along the way, you've made a basic routing system and -a method using ``ob_start()`` and ``ob_get_clean()`` to render templates. +a function using ``ob_start()`` and ``ob_get_clean()`` to render templates. If, for some reason, you needed to continue building this "framework" from scratch, you could at least use Symfony's standalone :doc:`Routing ` component and :doc:`Twig `, which already solve these problems. diff --git a/page_creation.rst b/page_creation.rst index 817c59fc6ff..d348f857855 100644 --- a/page_creation.rst +++ b/page_creation.rst @@ -220,7 +220,7 @@ Make sure that ``LuckyController`` extends Symfony's base // ... } -Now, use the handy ``render()`` function to render a template. Pass it a ``number`` +Now, use the handy ``render()`` method to render a template. Pass it a ``number`` variable so you can use it in Twig:: // src/Controller/LuckyController.php