Skip to content

Commit b56ab13

Browse files
committed
Made on additional fix as per previous pull request.
1 parent adffc6b commit b56ab13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cookbook/doctrine/registration_form.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ controller for displaying the registration form::
240240
namespace Acme\AccountBundle\Controller;
241241

242242
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
243-
use Symfony\Component\HttpFoundation\Request;
244243

245244
use Acme\AccountBundle\Form\Type\RegistrationType;
246245
use Acme\AccountBundle\Form\Model\Registration;
@@ -271,6 +270,9 @@ And its template:
271270
Next, create the controller which handles the form submission. This performs
272271
the validation and saves the data into the database::
273272

273+
use Symfony\Component\HttpFoundation\Request;
274+
// ...
275+
274276
public function createAction(Request $request)
275277
{
276278
$em = $this->getDoctrine()->getManager();

0 commit comments

Comments
 (0)