From cc98f6d34d5d92651e9d1b68db705554e25aee56 Mon Sep 17 00:00:00 2001 From: Akex Date: Tue, 9 Apr 2024 03:08:52 +0500 Subject: [PATCH 1/5] make controller --- public/HelloWorld.html | 12 +++++++ .../ReadFileLineByLineController.php | 32 +++++++++++++++++++ .../ReadFileLineByLineRepository.php | 26 +++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 public/HelloWorld.html create mode 100644 src/Controller/ReadFileLineByLineController.php create mode 100644 src/Repository/ReadFileLineByLineRepository.php diff --git a/public/HelloWorld.html b/public/HelloWorld.html new file mode 100644 index 0000000..0e89696 --- /dev/null +++ b/public/HelloWorld.html @@ -0,0 +1,12 @@ + + + + + Title + + +Hello World! +Hello World !! +Hello World !!! + + \ No newline at end of file diff --git a/src/Controller/ReadFileLineByLineController.php b/src/Controller/ReadFileLineByLineController.php new file mode 100644 index 0000000..423d56e --- /dev/null +++ b/src/Controller/ReadFileLineByLineController.php @@ -0,0 +1,32 @@ +getMessage(), Response::HTTP_NOT_FOUND); + } + + return new Response($file, Response::HTTP_OK); + } +} diff --git a/src/Repository/ReadFileLineByLineRepository.php b/src/Repository/ReadFileLineByLineRepository.php new file mode 100644 index 0000000..cd6fa57 --- /dev/null +++ b/src/Repository/ReadFileLineByLineRepository.php @@ -0,0 +1,26 @@ + Date: Tue, 9 Apr 2024 12:51:41 +0500 Subject: [PATCH 2/5] test commit --- src/Controller/ReadFileLineByLineController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controller/ReadFileLineByLineController.php b/src/Controller/ReadFileLineByLineController.php index 423d56e..e7cbcf5 100644 --- a/src/Controller/ReadFileLineByLineController.php +++ b/src/Controller/ReadFileLineByLineController.php @@ -30,3 +30,5 @@ class ReadFileLineByLineController extends AbstractController return new Response($file, Response::HTTP_OK); } } + + -- GitLab From d050cc486ba5c77bb55d6cb29dbeae5d7c304955 Mon Sep 17 00:00:00 2001 From: Akex Date: Tue, 9 Apr 2024 15:00:45 +0500 Subject: [PATCH 3/5] test --- .idea/.gitignore | 8 + .idea/iqdevTranningProgram.iml | 141 ++++++++++++++++ .idea/modules.xml | 8 + .idea/php.xml | 158 ++++++++++++++++++ .idea/phpunit.xml | 10 ++ .../0e61f67641b441bb3ee38e903c594d99cafa14b4 | 2 + .../11fc5ee351c0edf973b3158acd40705a072901f7 | 0 .../7c103dcd8c0314a8821f84f7886754511983a720 | 2 + .../dacdf19231dacf48f340f1ddb51182a025c0e074 | 0 .idea/sonarlint/issuestore/index.pb | 9 + .../0e61f67641b441bb3ee38e903c594d99cafa14b4 | 0 .../11fc5ee351c0edf973b3158acd40705a072901f7 | 0 .../7c103dcd8c0314a8821f84f7886754511983a720 | 0 .../dacdf19231dacf48f340f1ddb51182a025c0e074 | 0 .idea/sonarlint/securityhotspotstore/index.pb | 9 + .idea/symfony2.xml | 7 + .idea/vcs.xml | 6 + .../ReadFileLineByLineController.php | 2 - templates/count_friday13/index.html.twig | 20 +++ templates/diff_days/index.html.twig | 20 +++ templates/how_days_to_ny/index.html.twig | 20 +++ templates/prepare_menu/index.html.twig | 20 +++ .../read_file_line_by_line/index.html.twig | 20 +++ templates/read_log_file/index.html.twig | 20 +++ templates/search/index.html.twig | 20 +++ templates/sort_price/index.html.twig | 20 +++ templates/uniq_elements/index.html.twig | 20 +++ 27 files changed, 540 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/iqdevTranningProgram.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/php.xml create mode 100644 .idea/phpunit.xml create mode 100644 .idea/sonarlint/issuestore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 create mode 100644 .idea/sonarlint/issuestore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 create mode 100644 .idea/sonarlint/issuestore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 create mode 100644 .idea/sonarlint/issuestore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 create mode 100644 .idea/sonarlint/issuestore/index.pb create mode 100644 .idea/sonarlint/securityhotspotstore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 create mode 100644 .idea/sonarlint/securityhotspotstore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 create mode 100644 .idea/sonarlint/securityhotspotstore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 create mode 100644 .idea/sonarlint/securityhotspotstore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 create mode 100644 .idea/sonarlint/securityhotspotstore/index.pb create mode 100644 .idea/symfony2.xml create mode 100644 .idea/vcs.xml create mode 100644 templates/count_friday13/index.html.twig create mode 100644 templates/diff_days/index.html.twig create mode 100644 templates/how_days_to_ny/index.html.twig create mode 100644 templates/prepare_menu/index.html.twig create mode 100644 templates/read_file_line_by_line/index.html.twig create mode 100644 templates/read_log_file/index.html.twig create mode 100644 templates/search/index.html.twig create mode 100644 templates/sort_price/index.html.twig create mode 100644 templates/uniq_elements/index.html.twig diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/iqdevTranningProgram.iml b/.idea/iqdevTranningProgram.iml new file mode 100644 index 0000000..54d8720 --- /dev/null +++ b/.idea/iqdevTranningProgram.iml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..aedf51d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..762b2df --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/phpunit.xml b/.idea/phpunit.xml new file mode 100644 index 0000000..4f8104c --- /dev/null +++ b/.idea/phpunit.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 b/.idea/sonarlint/issuestore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 new file mode 100644 index 0000000..ef18277 --- /dev/null +++ b/.idea/sonarlint/issuestore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 @@ -0,0 +1,2 @@ + +f php:S4833"QReplace "require_once" with namespace import mechanism through the "use" keyword.(է \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 b/.idea/sonarlint/issuestore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 b/.idea/sonarlint/issuestore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 new file mode 100644 index 0000000..49baffe --- /dev/null +++ b/.idea/sonarlint/issuestore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 @@ -0,0 +1,2 @@ + +php:S112"FDefine and throw a dedicated exception instead of using a generic one.(ޖ81J$639b0b04-18e2-4d6f-b884-25955f0cf69c \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 b/.idea/sonarlint/issuestore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb new file mode 100644 index 0000000..b6417de --- /dev/null +++ b/.idea/sonarlint/issuestore/index.pb @@ -0,0 +1,9 @@ + +_ +/src/Controller/ReadFileLineByLineController.php,1/1/11fc5ee351c0edf973b3158acd40705a072901f7 +F +public/HelloWorld.html,d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 +@ +public/index.php,0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 +_ +/src/Repository/ReadFileLineByLineRepository.php,7/c/7c103dcd8c0314a8821f84f7886754511983a720 \ No newline at end of file diff --git a/.idea/sonarlint/securityhotspotstore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 b/.idea/sonarlint/securityhotspotstore/0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/securityhotspotstore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 b/.idea/sonarlint/securityhotspotstore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/securityhotspotstore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 b/.idea/sonarlint/securityhotspotstore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/securityhotspotstore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 b/.idea/sonarlint/securityhotspotstore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/securityhotspotstore/index.pb b/.idea/sonarlint/securityhotspotstore/index.pb new file mode 100644 index 0000000..b6417de --- /dev/null +++ b/.idea/sonarlint/securityhotspotstore/index.pb @@ -0,0 +1,9 @@ + +_ +/src/Controller/ReadFileLineByLineController.php,1/1/11fc5ee351c0edf973b3158acd40705a072901f7 +F +public/HelloWorld.html,d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 +@ +public/index.php,0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 +_ +/src/Repository/ReadFileLineByLineRepository.php,7/c/7c103dcd8c0314a8821f84f7886754511983a720 \ No newline at end of file diff --git a/.idea/symfony2.xml b/.idea/symfony2.xml new file mode 100644 index 0000000..3298060 --- /dev/null +++ b/.idea/symfony2.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/Controller/ReadFileLineByLineController.php b/src/Controller/ReadFileLineByLineController.php index e7cbcf5..423d56e 100644 --- a/src/Controller/ReadFileLineByLineController.php +++ b/src/Controller/ReadFileLineByLineController.php @@ -30,5 +30,3 @@ class ReadFileLineByLineController extends AbstractController return new Response($file, Response::HTTP_OK); } } - - diff --git a/templates/count_friday13/index.html.twig b/templates/count_friday13/index.html.twig new file mode 100644 index 0000000..e90908d --- /dev/null +++ b/templates/count_friday13/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello CountFriday13Controller!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: +
    +
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/src/Controller/CountFriday13Controller.php
  • +
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/templates/count_friday13/index.html.twig
  • +
+
+{% endblock %} diff --git a/templates/diff_days/index.html.twig b/templates/diff_days/index.html.twig new file mode 100644 index 0000000..462ac0b --- /dev/null +++ b/templates/diff_days/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello DiffDaysController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: +
    +
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/src/Controller/DiffDaysController.php
  • +
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/templates/diff_days/index.html.twig
  • +
+
+{% endblock %} diff --git a/templates/how_days_to_ny/index.html.twig b/templates/how_days_to_ny/index.html.twig new file mode 100644 index 0000000..4058510 --- /dev/null +++ b/templates/how_days_to_ny/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello HowDaysToNYController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: +
    +
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/src/Controller/HowDaysToNYController.php
  • +
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/templates/how_days_to_ny/index.html.twig
  • +
+
+{% endblock %} diff --git a/templates/prepare_menu/index.html.twig b/templates/prepare_menu/index.html.twig new file mode 100644 index 0000000..ddfd6d1 --- /dev/null +++ b/templates/prepare_menu/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello PrepareMenuController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: +
    +
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/src/Controller/PrepareMenuController.php
  • +
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/templates/prepare_menu/index.html.twig
  • +
+
+{% endblock %} diff --git a/templates/read_file_line_by_line/index.html.twig b/templates/read_file_line_by_line/index.html.twig new file mode 100644 index 0000000..68aed51 --- /dev/null +++ b/templates/read_file_line_by_line/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello ReadFileLineByLineController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: +
    +
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/src/Controller/ReadFileLineByLineController.php
  • +
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/templates/read_file_line_by_line/index.html.twig
  • +
+
+{% endblock %} diff --git a/templates/read_log_file/index.html.twig b/templates/read_log_file/index.html.twig new file mode 100644 index 0000000..9f08f19 --- /dev/null +++ b/templates/read_log_file/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello ReadLogFileController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: +
    +
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/src/Controller/ReadLogFileController.php
  • +
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/templates/read_log_file/index.html.twig
  • +
+
+{% endblock %} diff --git a/templates/search/index.html.twig b/templates/search/index.html.twig new file mode 100644 index 0000000..bd465aa --- /dev/null +++ b/templates/search/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello SearchController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: +
    +
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/src/Controller/SearchController.php
  • +
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/templates/search/index.html.twig
  • +
+
+{% endblock %} diff --git a/templates/sort_price/index.html.twig b/templates/sort_price/index.html.twig new file mode 100644 index 0000000..cd62397 --- /dev/null +++ b/templates/sort_price/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello SortPriceController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: +
    +
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/src/Controller/SortPriceController.php
  • +
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/templates/sort_price/index.html.twig
  • +
+
+{% endblock %} diff --git a/templates/uniq_elements/index.html.twig b/templates/uniq_elements/index.html.twig new file mode 100644 index 0000000..d56494b --- /dev/null +++ b/templates/uniq_elements/index.html.twig @@ -0,0 +1,20 @@ +{% extends 'base.html.twig' %} + +{% block title %}Hello UniqElementsController!{% endblock %} + +{% block body %} + + +
+

Hello {{ controller_name }}! ✅

+ + This friendly message is coming from: +
    +
  • Your controller at /home/tamanit/myProj/iqdevTranningProgram/src/Controller/UniqElementsController.php
  • +
  • Your template at /home/tamanit/myProj/iqdevTranningProgram/templates/uniq_elements/index.html.twig
  • +
+
+{% endblock %} -- GitLab From 702c998da4d0fd91def44b1c5f67f8f602b89672 Mon Sep 17 00:00:00 2001 From: "Alex. Plokhikh" Date: Tue, 16 Apr 2024 04:36:35 +0500 Subject: [PATCH 4/5] add controller and action --- .idea/sonarlint/issuestore/index.pb | 4 ++- .idea/sonarlint/securityhotspotstore/index.pb | 4 ++- src/Actions/ReadFileLineByLineAction.php | 29 +++++++++++++++++++ .../ReadFileLineByLineController.php | 10 ++++--- .../ReadFileLineByLineRepository.php | 26 ----------------- 5 files changed, 41 insertions(+), 32 deletions(-) create mode 100644 src/Actions/ReadFileLineByLineAction.php delete mode 100644 src/Repository/ReadFileLineByLineRepository.php diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb index b6417de..952c8a6 100644 --- a/.idea/sonarlint/issuestore/index.pb +++ b/.idea/sonarlint/issuestore/index.pb @@ -6,4 +6,6 @@ F @ public/index.php,0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 _ -/src/Repository/ReadFileLineByLineRepository.php,7/c/7c103dcd8c0314a8821f84f7886754511983a720 \ No newline at end of file +/src/Repository/ReadFileLineByLineRepository.php,7/c/7c103dcd8c0314a8821f84f7886754511983a720 +X +(src/Actions/ReadFileLineByLineAction.php,b/b/bb599184d4f741824c29e585018cdb8069747a80 \ No newline at end of file diff --git a/.idea/sonarlint/securityhotspotstore/index.pb b/.idea/sonarlint/securityhotspotstore/index.pb index b6417de..952c8a6 100644 --- a/.idea/sonarlint/securityhotspotstore/index.pb +++ b/.idea/sonarlint/securityhotspotstore/index.pb @@ -6,4 +6,6 @@ F @ public/index.php,0/e/0e61f67641b441bb3ee38e903c594d99cafa14b4 _ -/src/Repository/ReadFileLineByLineRepository.php,7/c/7c103dcd8c0314a8821f84f7886754511983a720 \ No newline at end of file +/src/Repository/ReadFileLineByLineRepository.php,7/c/7c103dcd8c0314a8821f84f7886754511983a720 +X +(src/Actions/ReadFileLineByLineAction.php,b/b/bb599184d4f741824c29e585018cdb8069747a80 \ No newline at end of file diff --git a/src/Actions/ReadFileLineByLineAction.php b/src/Actions/ReadFileLineByLineAction.php new file mode 100644 index 0000000..cf7f1f6 --- /dev/null +++ b/src/Actions/ReadFileLineByLineAction.php @@ -0,0 +1,29 @@ +act($filePath) as $line) { $file .= $line; } } catch (\Exception $exception) { diff --git a/src/Repository/ReadFileLineByLineRepository.php b/src/Repository/ReadFileLineByLineRepository.php deleted file mode 100644 index cd6fa57..0000000 --- a/src/Repository/ReadFileLineByLineRepository.php +++ /dev/null @@ -1,26 +0,0 @@ - Date: Wed, 17 Apr 2024 11:04:14 +0500 Subject: [PATCH 5/5] chenge login to read file from req --- src/Controller/ReadFileLineByLineController.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Controller/ReadFileLineByLineController.php b/src/Controller/ReadFileLineByLineController.php index d63b261..c6d0f03 100644 --- a/src/Controller/ReadFileLineByLineController.php +++ b/src/Controller/ReadFileLineByLineController.php @@ -4,6 +4,7 @@ namespace App\Controller; use App\Actions\ReadFileLineByLineAction; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; +use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; @@ -15,20 +16,21 @@ class ReadFileLineByLineController extends AbstractController * * @param string $filePath путь до файла * @return Response */ - #[Route('/readbyline/{filePath}', name: 'app_read_file_line_by_line')] + #[Route('/readbyline', name: 'app_read_file_line_by_line', methods: ['POST'])] public function index( - string $filePath, + Request $request, ReadFileLineByLineAction $action ) : Response { - $file = ""; + $file = $request->files->get('File'); + $content = ""; try{ - foreach ($action->act($filePath) as $line) { - $file .= $line; + foreach ($action->act($file->getRealPath()) as $line) { + $content .= $line; } } catch (\Exception $exception) { return new Response($exception->getMessage(), Response::HTTP_NOT_FOUND); } - return new Response($file, Response::HTTP_OK); + return new Response($content); } } -- GitLab