diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..13566b81b018ad684f3a35fee301741b2734c8f4 --- /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 0000000000000000000000000000000000000000..54d8720cc242bb9e2d9c1e29990d5988f667bb5b --- /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 0000000000000000000000000000000000000000..aedf51d4705090b3af7b4d50da524da260b488fd --- /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 0000000000000000000000000000000000000000..762b2dfb47f89213485944d42f43f98703d63d19 --- /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 0000000000000000000000000000000000000000..4f8104cfb166aed9afb9fa8317271ebd4f44e5cb --- /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 0000000000000000000000000000000000000000..ef18277ec815ab66f9347e4276513938f9fc5984 --- /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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/issuestore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 b/.idea/sonarlint/issuestore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 new file mode 100644 index 0000000000000000000000000000000000000000..49baffe2daef275d9641cc73fbdcc8705cfd0037 --- /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.(÷¾Þ–ýÿÿÿÿ8¼Èñýë1J$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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb new file mode 100644 index 0000000000000000000000000000000000000000..952c8a69794caa637ef4b2d74236ebf8f3ae2674 --- /dev/null +++ b/.idea/sonarlint/issuestore/index.pb @@ -0,0 +1,11 @@ + +_ +/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 +X +(src/Actions/ReadFileLineByLineAction.php,b/b/bb599184d4f741824c29e585018cdb8069747a80 \ 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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/securityhotspotstore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 b/.idea/sonarlint/securityhotspotstore/1/1/11fc5ee351c0edf973b3158acd40705a072901f7 new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/securityhotspotstore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 b/.idea/sonarlint/securityhotspotstore/7/c/7c103dcd8c0314a8821f84f7886754511983a720 new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/securityhotspotstore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 b/.idea/sonarlint/securityhotspotstore/d/a/dacdf19231dacf48f340f1ddb51182a025c0e074 new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/.idea/sonarlint/securityhotspotstore/index.pb b/.idea/sonarlint/securityhotspotstore/index.pb new file mode 100644 index 0000000000000000000000000000000000000000..952c8a69794caa637ef4b2d74236ebf8f3ae2674 --- /dev/null +++ b/.idea/sonarlint/securityhotspotstore/index.pb @@ -0,0 +1,11 @@ + +_ +/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 +X +(src/Actions/ReadFileLineByLineAction.php,b/b/bb599184d4f741824c29e585018cdb8069747a80 \ No newline at end of file diff --git a/.idea/symfony2.xml b/.idea/symfony2.xml new file mode 100644 index 0000000000000000000000000000000000000000..329806066e98b4e5d3cac43f8b4f3f10d55bec96 --- /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 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/public/HelloWorld.html b/public/HelloWorld.html new file mode 100644 index 0000000000000000000000000000000000000000..0e8969623370152066b2484563e8947c08a2d10e --- /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/Actions/ReadFileLineByLineAction.php b/src/Actions/ReadFileLineByLineAction.php new file mode 100644 index 0000000000000000000000000000000000000000..cf7f1f6fd14f715c057fe14ef46e7734e2fb468e --- /dev/null +++ b/src/Actions/ReadFileLineByLineAction.php @@ -0,0 +1,29 @@ +files->get('File'); + $content = ""; + try{ + foreach ($action->act($file->getRealPath()) as $line) { + $content .= $line; + } + } catch (\Exception $exception) { + return new Response($exception->getMessage(), Response::HTTP_NOT_FOUND); + } + + return new Response($content); + } +} diff --git a/templates/count_friday13/index.html.twig b/templates/count_friday13/index.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..e90908d4154aa6ea087da53532a9996b0a1573f3 --- /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: + +
+{% endblock %} diff --git a/templates/diff_days/index.html.twig b/templates/diff_days/index.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..462ac0bbc54b6e9311447613b99e5457433851c0 --- /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: + +
+{% 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 0000000000000000000000000000000000000000..4058510b94b0920e26da7a99e4def23bac7be5d2 --- /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: + +
+{% endblock %} diff --git a/templates/prepare_menu/index.html.twig b/templates/prepare_menu/index.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..ddfd6d14ef4b7191b4413d38aa67b9f4a6bd8137 --- /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: + +
+{% 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 0000000000000000000000000000000000000000..68aed515aad05ba67fe66ac06faeec8307a21a4f --- /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: + +
+{% endblock %} diff --git a/templates/read_log_file/index.html.twig b/templates/read_log_file/index.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..9f08f19af529af6e8a648246ba6606cce8dcb9fe --- /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: + +
+{% endblock %} diff --git a/templates/search/index.html.twig b/templates/search/index.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..bd465aa05ce19d1de5e42d822bcf4fb7a6b6e239 --- /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: + +
+{% endblock %} diff --git a/templates/sort_price/index.html.twig b/templates/sort_price/index.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..cd62397e96e6d43936ad35e95dec013ea992cb21 --- /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: + +
+{% endblock %} diff --git a/templates/uniq_elements/index.html.twig b/templates/uniq_elements/index.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..d56494b7519d691246e25955e4d51e8d7523b566 --- /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: + +
+{% endblock %}