Loading src/Controller/HomeController.php +2 −2 Original line number Diff line number Diff line Loading @@ -115,8 +115,8 @@ class HomeController extends AbstractController return $response; } #[Route('/{fileName}', name: 'home')] public function home(string $fileName): Response // text.txt #[Route('/func9/{fileName}', name: 'func9')] public function func9(string $fileName): Response // text.txt { $filePath = $this->getParameter('kernel.project_dir') . "/public/files/" . $fileName; $text = ""; Loading Loading
src/Controller/HomeController.php +2 −2 Original line number Diff line number Diff line Loading @@ -115,8 +115,8 @@ class HomeController extends AbstractController return $response; } #[Route('/{fileName}', name: 'home')] public function home(string $fileName): Response // text.txt #[Route('/func9/{fileName}', name: 'func9')] public function func9(string $fileName): Response // text.txt { $filePath = $this->getParameter('kernel.project_dir') . "/public/files/" . $fileName; $text = ""; Loading