Skip to content

Commit e612fb5

Browse files
Tiago Ribeiroweaverryan
authored andcommitted
Fixes type namespace and added missing colons
1 parent 021f8d3 commit e612fb5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cookbook/form/dynamic_form_generation.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ How to Dynamically Generate Forms Using Form Events
77
Before jumping right into dynamic form generation, let's have a quick review
88
of what a bare form class looks like::
99

10-
// src/Acme/DemoBundle/Form/ProductType.php
11-
namespace Acme\DemoBundle\Form;
10+
// src/Acme/DemoBundle/Form/Type/ProductType.php
11+
namespace Acme\DemoBundle\Form\Type;
1212

1313
use Symfony\Component\Form\AbstractType;
1414
use Symfony\Component\Form\FormBuilder;
@@ -53,10 +53,10 @@ So, instead of directly adding that "name" widget via our ProductType form
5353
class, let's delegate the responsibility of creating that particular field
5454
to an Event Subscriber::
5555

56-
// src/Acme/DemoBundle/Form/ProductType.php
57-
namespace Acme\DemoBundle\Form
56+
// src/Acme/DemoBundle/Form/Type/ProductType.php
57+
namespace Acme\DemoBundle\Form\Type;
5858

59-
use Symfony\Component\Form\AbstractType
59+
use Symfony\Component\Form\AbstractType;
6060
use Symfony\Component\Form\FormBuilder;
6161
use Acme\DemoBundle\Form\EventListener\AddNameFieldSubscriber;
6262

0 commit comments

Comments
 (0)