Fatal error: Cannot use Symfony\Component\HttpFoundation\Response as Response because the name is already in use in /var/www/src/Controller/Extranet/ExtranetFront/Page/ContactController.php on line 28
Compile Error: Cannot use Symfony\Component\HttpFoundation\Response as Response because the name is already in use (500 Internal Server Error)

Symfony Exception

FatalError

HTTP 500 Internal Server Error

Compile Error: Cannot use Symfony\Component\HttpFoundation\Response as Response because the name is already in use

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#53
  -error: array:4 [
    "type" => 64
    "message" => "Cannot use Symfony\Component\HttpFoundation\Response as Response because the name is already in use"
    "file" => "/var/www/src/Controller/Extranet/ExtranetFront/Page/ContactController.php"
    "line" => 28
  ]
}
  1. use Symfony\Component\Mime\Email;
  2. use Symfony\Component\Mime\Part\DataPart;
  3. use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use Symfony\Component\Security\Http\Attribute\IsGranted;
  6. use Symfony\Component\HttpFoundation\Response;
  7. class ContactController extends GeneriqueController
  8. {
  9. private $tool;

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Cannot use Symfony\Component\HttpFoundation\Response as Response because the name is already in use

  at /var/www/src/Controller/Extranet/ExtranetFront/Page/ContactController.php:28