correction bug lancer
This commit is contained in:
@@ -324,8 +324,8 @@ final class HomeController extends AbstractController
|
||||
|
||||
// 2. Suppression du fichier physique (si présent)
|
||||
$path = $this->projectDir . '/public/downloader/user/';
|
||||
$filePath = $path . $this->getUser()->getId() . '/' . $userDownloader->getName();
|
||||
|
||||
$filePath = $path . $this->getUser()->getId() . '/' . $userDownloader->getNameFile();
|
||||
|
||||
if ($this->filesystem->exists($filePath)) {
|
||||
$this->filesystem->remove($filePath);
|
||||
}
|
||||
@@ -349,7 +349,7 @@ final class HomeController extends AbstractController
|
||||
#[Route('/test', name: 'app_test')]
|
||||
public function test()
|
||||
{
|
||||
|
||||
die;
|
||||
return $this->render('/frontend/test.html.twig', []);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user