We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adffc6b commit b56ab13Copy full SHA for b56ab13
cookbook/doctrine/registration_form.rst
@@ -240,7 +240,6 @@ controller for displaying the registration form::
240
namespace Acme\AccountBundle\Controller;
241
242
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
243
- use Symfony\Component\HttpFoundation\Request;
244
245
use Acme\AccountBundle\Form\Type\RegistrationType;
246
use Acme\AccountBundle\Form\Model\Registration;
@@ -271,6 +270,9 @@ And its template:
271
270
Next, create the controller which handles the form submission. This performs
272
the validation and saves the data into the database::
273
+ use Symfony\Component\HttpFoundation\Request;
274
+ // ...
275
+
276
public function createAction(Request $request)
277
{
278
$em = $this->getDoctrine()->getManager();
0 commit comments