Skip to content

Commit 5266f24

Browse files
authored
Add empty parentheses to method names
1 parent 50c8385 commit 5266f24

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controller.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ creating unnecessarily deep structures::
219219

220220
// renders app/Resources/views/lottery/lucky/number.html.twig
221221
return $this->render('lottery/lucky/number.html.twig', array(
222-
'name' => $name
222+
'name' => $name,
223223
));
224224

225225
The Symfony templating system and Twig are explained more in the
@@ -398,7 +398,7 @@ For example, imagine you're processing a :doc:`form </forms>` submission::
398398
'notice',
399399
'Your changes were saved!'
400400
);
401-
// $this->addFlash is equivalent to $request->getSession()->getFlashBag()->add
401+
// $this->addFlash() is equivalent to $request->getSession()->getFlashBag()->add()
402402

403403
return $this->redirectToRoute(...);
404404
}
@@ -536,7 +536,7 @@ final ``Response`` object that will be returned to the user.
536536
To make life easier, you'll probably extend the base ``Controller`` class because
537537
this gives two things:
538538

539-
A) Shortcut methods (like ``render()`` and ``redirectToRoute``);
539+
A) Shortcut methods (like ``render()`` and ``redirectToRoute()``);
540540

541541
B) Access to *all* of the useful objects (services) in the system via the
542542
:ref:`get() <controller-accessing-services>` method.

0 commit comments

Comments
 (0)