From 740e58db87b459ba7ed790a149cd99af2e197b93 Mon Sep 17 00:00:00 2001 From: Fabien Schurter Date: Sun, 9 Aug 2015 19:25:45 +0200 Subject: [PATCH 1/5] Add a missing backtick --- create_framework/templating.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_framework/templating.rst b/create_framework/templating.rst index 987a9ea26d1..5d233ecfe37 100644 --- a/create_framework/templating.rst +++ b/create_framework/templating.rst @@ -173,7 +173,7 @@ framework does not need to be modified in any way, just create a new The ``is_leap_year()`` function returns ``true`` when the given year is a leap year, ``false`` otherwise. If the year is ``null``, the current year is tested. The controller is simple: it gets the year from the request -attributes, pass it to the `is_leap_year()`` function, and according to the +attributes, pass it to the ``is_leap_year()`` function, and according to the return value it creates a new Response object. As always, you can decide to stop here and use the framework as is; it's From 9979a723a3419c6971de51c74270d3047ec34087 Mon Sep 17 00:00:00 2001 From: Fabien Schurter Date: Mon, 10 Aug 2015 12:25:37 +0200 Subject: [PATCH 2/5] Remove unneeded backtick --- create_framework/http-kernel-controller-resolver.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_framework/http-kernel-controller-resolver.rst b/create_framework/http-kernel-controller-resolver.rst index b0393b4cdd3..261ab548cf9 100644 --- a/create_framework/http-kernel-controller-resolver.rst +++ b/create_framework/http-kernel-controller-resolver.rst @@ -91,7 +91,7 @@ introspects the controller signature to determine which arguments to pass to it by using the native PHP `reflection`_. The ``indexAction()`` method needs the Request object as an argument. -```getArguments()`` knows when to inject it properly if it is type-hinted +``getArguments()`` knows when to inject it properly if it is type-hinted correctly:: public function indexAction(Request $request) From edcdb3ae9785543232776d6aad778ff426337b7a Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Wed, 12 Aug 2015 10:56:43 -0700 Subject: [PATCH 3/5] the_architecture: Fix syntax error --- quick_tour/the_architecture.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quick_tour/the_architecture.rst b/quick_tour/the_architecture.rst index 4259cadba7b..8fdd851376a 100644 --- a/quick_tour/the_architecture.rst +++ b/quick_tour/the_architecture.rst @@ -114,7 +114,7 @@ a single Bundle class that describes it:: new Symfony\Bundle\DoctrineBundle\DoctrineBundle(), new Symfony\Bundle\AsseticBundle\AsseticBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), - new AppBundle\AppBundle(); + new AppBundle\AppBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { From 74da3cf03a27f39a77f59e2393f1dc97ed22f0b8 Mon Sep 17 00:00:00 2001 From: "Issei.M" Date: Mon, 10 Aug 2015 00:39:06 +0900 Subject: [PATCH 4/5] updated validation.rst --- book/validation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/validation.rst b/book/validation.rst index 5f250721c1a..ac03fc8f5fc 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -212,7 +212,7 @@ The ``validator`` service can be used at any time to validate any object. In reality, however, you'll usually work with the ``validator`` indirectly when working with forms. Symfony's form library uses the ``validator`` service internally to validate the underlying object after values have been submitted. -The constraint violations on the object are converted into ``FieldError`` +The constraint violations on the object are converted into ``FormError`` objects that can easily be displayed with your form. The typical form submission workflow looks like the following from inside a controller:: From 478023cfcee1e016a51080ceafe008c66fd4d8e5 Mon Sep 17 00:00:00 2001 From: Alex Wybraniec Date: Mon, 3 Aug 2015 16:14:07 +0100 Subject: [PATCH 5/5] Missing --no-interaction flag? Running php app/console doctrine:generate:entity --entity="AppBundle:Category" --fields="name:string(255)" does not automatically generate the entity. Needs the --no-interaction flag setting. --- book/doctrine.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 304edfc43bf..7749a0b76bc 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -904,7 +904,7 @@ you can let Doctrine create the class for you. .. code-block:: bash - $ php app/console doctrine:generate:entity \ + $ php app/console doctrine:generate:entity --no-interaction \ --entity="AppBundle:Category" \ --fields="name:string(255)"