Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b56ab13

Browse filesBrowse files
committed
Made on additional fix as per previous pull request.
1 parent adffc6b commit b56ab13
Copy full SHA for b56ab13

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎cookbook/doctrine/registration_form.rst

Copy file name to clipboardExpand all lines: cookbook/doctrine/registration_form.rst
+3-1Lines changed: 3 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.