8000 Added the missing class imports · symfony/symfony-docs@c379ac4 · GitHub
[go: up one dir, main page]

Skip to content

Commit c379ac4

Browse files
committed
Added the missing class imports
1 parent 8baa524 commit c379ac4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controller/upload_file.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ Finally, you need to update the code of the controller that handles the form::
101101

102102
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
103103
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
104+
use Symfony\Component\HttpFoundation\File\Exception\FileException;
104105
use Symfony\Component\HttpFoundation\Request;
105106
use AppBundle\Entity\Product;
106107
use AppBundle\Form\ProductType;
@@ -218,6 +219,7 @@ logic to a separate service::
218219
// src/AppBundle/FileUploader.php
219220
namespace AppBundle;
220221

222+
use Symfony\Component\HttpFoundation\File\Exception\FileException;
221223
use Symfony\Component\HttpFoundation\File\UploadedFile;
222224

223225
class FileUploader

0 commit comments

Comments
 (0)
0