Skip to content

Commit 37bf9e4

Browse files
xavierbriandfabpot
authored andcommitted
[Forms/overview] added namespace
1 parent cb08d7d commit 37bf9e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

guides/forms/overview.rst

+6
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ accepting terms and conditions.
267267

268268
Let's create a simple ``Registration`` class for this purpose::
269269

270+
namespace Application\HelloBundle\Entity;
271+
270272
class Registration
271273
{
272274
/** @validation:Valid */
@@ -284,6 +286,10 @@ Let's create a simple ``Registration`` class for this purpose::
284286
Now we can easily adapt the form in the controller::
285287

286288
# src/Application/HelloBundle/Controller/HelloController.php
289+
290+
use Application\HelloBundle\Entity\Registration;
291+
use Symfony\Component\Form\CheckboxField;
292+
287293
public function signupAction()
288294
{
289295
$registration = new Registration();

0 commit comments

Comments
 (0)