File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ The following controller shows you how to handle the entire process::
165
165
$em->persist($document);
166
166
$em->flush();
167
167
168
- $this->redirect($this->generateUrl(...));
168
+ return $this->redirect($this->generateUrl(...));
169
169
}
170
170
}
171
171
@@ -203,7 +203,7 @@ in a moment to handle the file upload::
203
203
$em->persist($document);
204
204
$em->flush();
205
205
206
- $this->redirect(...);
206
+ return $this->redirect(...);
207
207
}
208
208
209
209
The ``upload() `` method will take advantage of the :class: `Symfony\\ Component\\ HttpFoundation\\ File\\ UploadedFile `
@@ -323,7 +323,7 @@ call to ``$document->upload()`` should be removed from the controller::
323
323
$em->persist($document);
324
324
$em->flush();
325
325
326
- $this->redirect(...);
326
+ return $this->redirect(...);
327
327
}
328
328
329
329
.. note ::
You can’t perform that action at this time.
0 commit comments