internship преди 3 години
родител
ревизия
9507dd75c8
променени са 7 файла, в които са добавени 187 реда и са изтрити 240 реда
  1. 66 0
      .idea/internship-playground.iml
  2. 8 0
      .idea/modules.xml
  3. 73 0
      .idea/php.xml
  4. 6 0
      .idea/vcs.xml
  5. 9 9
      composer.json
  6. 21 229
      composer.lock
  7. 4 2
      src-php/app/internship/controller/ArticleController.php

+ 66 - 0
.idea/internship-playground.iml

@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/src-php/app/internship" isTestSource="false" packagePrefix="custom\" />
+      <sourceFolder url="file://$MODULE_DIR$/src-php/test/internship" isTestSource="true" packagePrefix="custom\" />
+      <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/myclabs/deep-copy" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/nikic/php-parser" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/composer" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-composer-module-installer" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-config" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/hangar" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-io" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-mail" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-log4php" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-reflection" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-impl-web-dispatch" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-test" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-util" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-impl-web-ui" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/phpbob" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-web" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/phar-io/manifest" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-impl-persistence-meta" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/phar-io/version" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/hangar-api" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-persistence" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-context" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-impl-persistence-orm" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-l10n" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/doctrine/instantiator" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/theseer/tokenizer" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/cli-parser" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/code-unit" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/code-unit-reverse-lookup" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/comparator" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/complexity" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/diff" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/phpunit/php-code-coverage" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/environment" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/phpunit/php-file-iterator" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/exporter" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/phpunit/php-invoker" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/global-state" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/phpunit/php-text-template" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/lines-of-code" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/phpunit/php-timer" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/object-enumerator" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/phpunit/phpunit" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/object-reflector" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/recursion-context" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/n2n/n2n-batch" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/resource-operations" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/type" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/sebastian/version" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/psr/container" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/psr/http-factory" />
+      <excludeFolder url="file://$MODULE_DIR$/src-php/vendor/psr/http-message" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/internship-playground.iml" filepath="$PROJECT_DIR$/.idea/internship-playground.iml" />
+    </modules>
+  </component>
+</project>

+ 73 - 0
.idea/php.xml

@@ -1,9 +1,82 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
+  <component name="MessDetectorOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCSFixerOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCodeSnifferOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PhpIncludePathManager">
+    <include_path>
+      <path value="$PROJECT_DIR$/vendor/n2n/n2n-composer-module-installer" />
+      <path value="$PROJECT_DIR$/src-php/vendor/myclabs/deep-copy" />
+      <path value="$PROJECT_DIR$/src-php/vendor/nikic/php-parser" />
+      <path value="$PROJECT_DIR$/src-php/vendor/composer" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-composer-module-installer" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-config" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/hangar" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-io" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-mail" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-log4php" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-reflection" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-impl-web-dispatch" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-test" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-util" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-impl-web-ui" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/phpbob" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-web" />
+      <path value="$PROJECT_DIR$/src-php/vendor/phar-io/manifest" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-impl-persistence-meta" />
+      <path value="$PROJECT_DIR$/src-php/vendor/phar-io/version" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/hangar-api" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-persistence" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-context" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-impl-persistence-orm" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-l10n" />
+      <path value="$PROJECT_DIR$/src-php/vendor/doctrine/instantiator" />
+      <path value="$PROJECT_DIR$/src-php/vendor/theseer/tokenizer" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/cli-parser" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/code-unit" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/code-unit-reverse-lookup" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/comparator" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/complexity" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/diff" />
+      <path value="$PROJECT_DIR$/src-php/vendor/phpunit/php-code-coverage" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/environment" />
+      <path value="$PROJECT_DIR$/src-php/vendor/phpunit/php-file-iterator" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/exporter" />
+      <path value="$PROJECT_DIR$/src-php/vendor/phpunit/php-invoker" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/global-state" />
+      <path value="$PROJECT_DIR$/src-php/vendor/phpunit/php-text-template" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/lines-of-code" />
+      <path value="$PROJECT_DIR$/src-php/vendor/phpunit/php-timer" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/object-enumerator" />
+      <path value="$PROJECT_DIR$/src-php/vendor/phpunit/phpunit" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/object-reflector" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/recursion-context" />
+      <path value="$PROJECT_DIR$/src-php/vendor/n2n/n2n-batch" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/resource-operations" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/type" />
+      <path value="$PROJECT_DIR$/src-php/vendor/sebastian/version" />
+      <path value="$PROJECT_DIR$/src-php/vendor/psr/container" />
+      <path value="$PROJECT_DIR$/src-php/vendor/psr/http-factory" />
+      <path value="$PROJECT_DIR$/src-php/vendor/psr/http-message" />
+    </include_path>
+  </component>
   <component name="PhpProjectSharedConfiguration" php_language_level="8.1" />
+  <component name="PhpStanOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
   <component name="PhpUnit">
     <phpunit_settings>
       <PhpUnitSettings custom_loader_path="$PROJECT_DIR$/src-php/vendor/autoload.php" phpunit_phar_path="" />
     </phpunit_settings>
   </component>
+  <component name="PsalmOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
 </project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>

+ 9 - 9
composer.json

@@ -5,18 +5,18 @@
     "minimum-stability": "dev",
     "prefer-stable": true,
     "require": {
-        "n2n/n2n": "^7.2.0",
-        "n2n/n2n-batch": "^7.2.0",
-        "n2n/n2n-context": "^7.2.0",
-        "n2n/n2n-mail": "^7.2.0",
-        "n2n/n2n-impl-persistence-meta": "^7.2.0",
-        "n2n/n2n-impl-persistence-orm": "^7.2.0",
-        "n2n/n2n-impl-web-dispatch": "^7.2.0",
-        "n2n/n2n-impl-web-ui": "^7.2.0"
+        "n2n/n2n": "^7.3",
+        "n2n/n2n-batch": "^7.3",
+        "n2n/n2n-context": "^7.3",
+        "n2n/n2n-mail": "^7.3",
+        "n2n/n2n-impl-persistence-meta": "^7.3",
+        "n2n/n2n-impl-persistence-orm": "^7.3",
+        "n2n/n2n-impl-web-dispatch": "^7.3",
+        "n2n/n2n-impl-web-ui": "^7.3"
     },
     "require-dev": {
         "n2n/hangar": "^7.2.0",
-        "n2n/n2n-test" : "^7.2.0",
+        "n2n/n2n-test" : "^7.3",
         "phpunit/phpunit" : "^9.5"
     },
     "autoload" : {

+ 21 - 229
composer.lock

@@ -4,32 +4,31 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "24a98ac746c817ab503dcf087edc0627",
+    "content-hash": "a0280d3ba5b2388582a915028033ccf3",
     "packages": [
         {
             "name": "n2n/n2n",
-            "version": "v7.3.0",
+            "version": "7.3.x-dev",
             "source": {
                 "type": "git",
                 "url": "https://github.com/n2n/n2n.git",
-                "reference": "b28faa99ea46b395238f7640c8aad9f7bd31d76d"
+                "reference": "fe7b47dc26592a2284da589f685b94751d8018b8"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/n2n/n2n/zipball/b28faa99ea46b395238f7640c8aad9f7bd31d76d",
-                "reference": "b28faa99ea46b395238f7640c8aad9f7bd31d76d",
+                "url": "https://api.github.com/repos/n2n/n2n/zipball/fe7b47dc26592a2284da589f685b94751d8018b8",
+                "reference": "fe7b47dc26592a2284da589f685b94751d8018b8",
                 "shasum": ""
             },
             "require": {
                 "n2n/n2n-composer-module-installer": "^7.1.5",
-                "n2n/n2n-config": "^7.3",
-                "n2n/n2n-context": "^7.3",
-                "n2n/n2n-l10n": "^7.3",
-                "n2n/n2n-log4php": "^7.3",
-                "n2n/n2n-mail": "^7.3",
-                "n2n/n2n-reflection": "^7.3",
-                "n2n/n2n-util": "^7.3",
-                "php": ">=8.0"
+                "n2n/n2n-config": "~7.3",
+                "n2n/n2n-context": "~7.3",
+                "n2n/n2n-l10n": "~7.3",
+                "n2n/n2n-log4php": "~7.3",
+                "n2n/n2n-mail": "~7.3",
+                "n2n/n2n-reflection": "~7.3.3",
+                "n2n/n2n-util": "~7.3"
             },
             "require-dev": {
                 "phpunit/phpunit": "^9.5"
@@ -66,11 +65,7 @@
                 "framework",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n/issues",
-                "source": "https://github.com/n2n/n2n/tree/v7.3.0"
-            },
-            "time": "2022-10-27T22:28:37+00:00"
+            "time": "2022-12-09T01:25:23+00:00"
         },
         {
             "name": "n2n/n2n-batch",
@@ -117,10 +112,6 @@
                 "batch job",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-batch/issues",
-                "source": "https://github.com/n2n/n2n-batch/tree/v7.3.0"
-            },
             "time": "2021-07-30T17:36:59+00:00"
         },
         {
@@ -170,10 +161,6 @@
                 "module",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-composer-module-installer/issues",
-                "source": "https://github.com/n2n/n2n-composer-module-installer/tree/v7.1.5"
-            },
             "time": "2022-05-10T13:18:10+00:00"
         },
         {
@@ -220,30 +207,25 @@
                 "batch job",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-config/issues",
-                "source": "https://github.com/n2n/n2n-config/tree/v7.3.0"
-            },
             "time": "2022-10-07T14:09:56+00:00"
         },
         {
             "name": "n2n/n2n-context",
-            "version": "v7.3.0",
+            "version": "7.3.x-dev",
             "source": {
                 "type": "git",
                 "url": "https://github.com/n2n/n2n-context.git",
-                "reference": "edba74692234db9f898754bad51276be218b0d0f"
+                "reference": "b5631f0f729e62cba14c8070274e64a9aa3bd821"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/n2n/n2n-context/zipball/edba74692234db9f898754bad51276be218b0d0f",
-                "reference": "edba74692234db9f898754bad51276be218b0d0f",
+                "url": "https://api.github.com/repos/n2n/n2n-context/zipball/b5631f0f729e62cba14c8070274e64a9aa3bd821",
+                "reference": "b5631f0f729e62cba14c8070274e64a9aa3bd821",
                 "shasum": ""
             },
             "require": {
-                "n2n/n2n-reflection": "^7.3",
-                "n2n/n2n-util": "^7.3",
-                "php": ">=8.0"
+                "n2n/n2n-reflection": "~7.3.3",
+                "n2n/n2n-util": "~7.3"
             },
             "provide": {
                 "psr/container-implementation": "1.0.0"
@@ -278,11 +260,7 @@
                 "scope",
                 "session scope"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-context/issues",
-                "source": "https://github.com/n2n/n2n-context/tree/v7.3.0"
-            },
-            "time": "2022-09-27T14:35:53+00:00"
+            "time": "2022-12-19T13:02:08+00:00"
         },
         {
             "name": "n2n/n2n-impl-persistence-meta",
@@ -335,10 +313,6 @@
                 "n2n",
                 "persistence"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-impl-persistence-meta/issues",
-                "source": "https://github.com/n2n/n2n-impl-persistence-meta/tree/v7.3.0"
-            },
             "time": "2022-10-24T19:56:30+00:00"
         },
         {
@@ -390,10 +364,6 @@
                 "orm",
                 "persistence"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-impl-persistence-orm/issues",
-                "source": "https://github.com/n2n/n2n-impl-persistence-orm/tree/v7.3.5"
-            },
             "time": "2022-12-20T16:33:17+00:00"
         },
         {
@@ -445,10 +415,6 @@
                 "n2n",
                 "web"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-impl-web-dispatch/issues",
-                "source": "https://github.com/n2n/n2n-impl-web-dispatch/tree/v7.3.1"
-            },
             "time": "2022-12-12T15:58:33+00:00"
         },
         {
@@ -500,10 +466,6 @@
                 "n2n",
                 "xml"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-impl-web-ui/issues",
-                "source": "https://github.com/n2n/n2n-impl-web-ui/tree/v7.3.0"
-            },
             "time": "2022-05-31T13:53:32+00:00"
         },
         {
@@ -551,10 +513,6 @@
                 "io",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-io/issues",
-                "source": "https://github.com/n2n/n2n-io/tree/v7.3.1"
-            },
             "time": "2022-12-06T14:58:17+00:00"
         },
         {
@@ -601,10 +559,6 @@
                 "l10n",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-l10n/issues",
-                "source": "https://github.com/n2n/n2n-l10n/tree/v7.3.0"
-            },
             "time": "2022-10-24T19:47:50+00:00"
         },
         {
@@ -640,10 +594,6 @@
                 "log4php",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-log4php/issues",
-                "source": "https://github.com/n2n/n2n-log4php/tree/v7.3.0"
-            },
             "time": "2022-05-30T14:43:08+00:00"
         },
         {
@@ -690,10 +640,6 @@
                 "mail",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-mail/issues",
-                "source": "https://github.com/n2n/n2n-mail/tree/v7.3.0"
-            },
             "time": "2022-10-31T16:33:35+00:00"
         },
         {
@@ -743,10 +689,6 @@
                 "orm",
                 "persistence"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-persistence/issues",
-                "source": "https://github.com/n2n/n2n-persistence/tree/v7.3.2"
-            },
             "time": "2022-12-06T18:09:19+00:00"
         },
         {
@@ -793,10 +735,6 @@
                 "awesome",
                 "framework"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-reflection/issues",
-                "source": "https://github.com/n2n/n2n-reflection/tree/v7.3.3"
-            },
             "time": "2022-12-06T18:09:19+00:00"
         },
         {
@@ -844,10 +782,6 @@
                 "n2n",
                 "util"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-util/issues",
-                "source": "https://github.com/n2n/n2n-util/tree/v7.3.1"
-            },
             "time": "2022-11-09T15:02:13+00:00"
         },
         {
@@ -903,10 +837,6 @@
                 "n2n",
                 "rest"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-web/issues",
-                "source": "https://github.com/n2n/n2n-web/tree/v7.3.3"
-            },
             "time": "2022-11-15T00:54:19+00:00"
         },
         {
@@ -956,10 +886,6 @@
                 "container-interop",
                 "psr"
             ],
-            "support": {
-                "issues": "https://github.com/php-fig/container/issues",
-                "source": "https://github.com/php-fig/container/tree/2.0.2"
-            },
             "time": "2021-11-05T16:47:00+00:00"
         },
         {
@@ -1012,9 +938,6 @@
                 "request",
                 "response"
             ],
-            "support": {
-                "source": "https://github.com/php-fig/http-factory/tree/master"
-            },
             "time": "2019-04-30T12:38:16+00:00"
         },
         {
@@ -1065,9 +988,6 @@
                 "request",
                 "response"
             ],
-            "support": {
-                "source": "https://github.com/php-fig/http-message/tree/master"
-            },
             "time": "2016-08-06T14:39:51+00:00"
         }
     ],
@@ -1122,10 +1042,6 @@
                 "constructor",
                 "instantiate"
             ],
-            "support": {
-                "issues": "https://github.com/doctrine/instantiator/issues",
-                "source": "https://github.com/doctrine/instantiator/tree/1.5.0"
-            },
             "funding": [
                 {
                     "url": "https://www.doctrine-project.org/sponsorship.html",
@@ -1189,10 +1105,6 @@
                 "object",
                 "object graph"
             ],
-            "support": {
-                "issues": "https://github.com/myclabs/DeepCopy/issues",
-                "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0"
-            },
             "funding": [
                 {
                     "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
@@ -1245,10 +1157,6 @@
                 "hangar",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/hangar/issues",
-                "source": "https://github.com/n2n/hangar/tree/v7.3.0"
-            },
             "time": "2022-10-24T14:51:09+00:00"
         },
         {
@@ -1299,10 +1207,6 @@
                 "hangar",
                 "n2n"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/hangar-api/issues",
-                "source": "https://github.com/n2n/hangar-api/tree/1.0.x"
-            },
             "time": "2021-07-31T17:30:07+00:00"
         },
         {
@@ -1351,10 +1255,6 @@
                 "test",
                 "utils"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/n2n-test/issues",
-                "source": "https://github.com/n2n/n2n-test/tree/v7.3.0"
-            },
             "time": "2022-06-29T10:50:22+00:00"
         },
         {
@@ -1402,10 +1302,6 @@
                 "n2n",
                 "phpbob"
             ],
-            "support": {
-                "issues": "https://github.com/n2n/phpbob/issues",
-                "source": "https://github.com/n2n/phpbob/tree/master"
-            },
             "time": "2021-08-30T16:19:56+00:00"
         },
         {
@@ -1458,10 +1354,6 @@
                 "parser",
                 "php"
             ],
-            "support": {
-                "issues": "https://github.com/nikic/PHP-Parser/issues",
-                "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.2"
-            },
             "time": "2022-11-12T15:38:23+00:00"
         },
         {
@@ -1518,10 +1410,6 @@
                 }
             ],
             "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
-            "support": {
-                "issues": "https://github.com/phar-io/manifest/issues",
-                "source": "https://github.com/phar-io/manifest/tree/2.0.3"
-            },
             "time": "2021-07-20T11:28:43+00:00"
         },
         {
@@ -1569,10 +1457,6 @@
                 }
             ],
             "description": "Library for handling version information and constraints",
-            "support": {
-                "issues": "https://github.com/phar-io/version/issues",
-                "source": "https://github.com/phar-io/version/tree/3.2.1"
-            },
             "time": "2022-02-21T01:04:05+00:00"
         },
         {
@@ -1640,10 +1524,6 @@
                 "testing",
                 "xunit"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
-                "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.23"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -1700,10 +1580,6 @@
                 "filesystem",
                 "iterator"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
-                "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -1763,10 +1639,6 @@
             "keywords": [
                 "process"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
-                "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -1822,10 +1694,6 @@
             "keywords": [
                 "template"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
-                "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -1881,10 +1749,6 @@
             "keywords": [
                 "timer"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/php-timer/issues",
-                "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -1975,10 +1839,6 @@
                 "testing",
                 "xunit"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/phpunit/issues",
-                "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.27"
-            },
             "funding": [
                 {
                     "url": "https://phpunit.de/sponsors.html",
@@ -2039,10 +1899,6 @@
             ],
             "description": "Library for parsing CLI options",
             "homepage": "https://github.com/sebastianbergmann/cli-parser",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
-                "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2095,10 +1951,6 @@
             ],
             "description": "Collection of value objects that represent the PHP code units",
             "homepage": "https://github.com/sebastianbergmann/code-unit",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/code-unit/issues",
-                "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2150,10 +2002,6 @@
             ],
             "description": "Looks up which function or method a line of code belongs to",
             "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
-                "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2224,10 +2072,6 @@
                 "compare",
                 "equality"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/comparator/issues",
-                "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2281,10 +2125,6 @@
             ],
             "description": "Library for calculating the complexity of PHP code units",
             "homepage": "https://github.com/sebastianbergmann/complexity",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/complexity/issues",
-                "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2347,10 +2187,6 @@
                 "unidiff",
                 "unified diff"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/diff/issues",
-                "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2410,10 +2246,6 @@
                 "environment",
                 "hhvm"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/environment/issues",
-                "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2487,10 +2319,6 @@
                 "export",
                 "exporter"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/exporter/issues",
-                "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2551,10 +2379,6 @@
             "keywords": [
                 "global state"
             ],
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/global-state/issues",
-                "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2608,10 +2432,6 @@
             ],
             "description": "Library for counting the lines of code in PHP source code",
             "homepage": "https://github.com/sebastianbergmann/lines-of-code",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
-                "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2665,10 +2485,6 @@
             ],
             "description": "Traverses array structures and object graphs to enumerate all referenced objects",
             "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
-                "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2720,10 +2536,6 @@
             ],
             "description": "Allows reflection of object attributes, including inherited and non-public ones",
             "homepage": "https://github.com/sebastianbergmann/object-reflector/",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
-                "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2783,10 +2595,6 @@
             ],
             "description": "Provides functionality to recursively process PHP variables",
             "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
-                "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2838,10 +2646,6 @@
             ],
             "description": "Provides a list of PHP built-in functions that operate on resources",
             "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
-                "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2894,10 +2698,6 @@
             ],
             "description": "Collection of value objects that represent the types of the PHP type system",
             "homepage": "https://github.com/sebastianbergmann/type",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/type/issues",
-                "source": "https://github.com/sebastianbergmann/type/tree/3.2.0"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2947,10 +2747,6 @@
             ],
             "description": "Library that helps with managing the version number of Git-hosted PHP projects",
             "homepage": "https://github.com/sebastianbergmann/version",
-            "support": {
-                "issues": "https://github.com/sebastianbergmann/version/issues",
-                "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
-            },
             "funding": [
                 {
                     "url": "https://github.com/sebastianbergmann",
@@ -2997,10 +2793,6 @@
                 }
             ],
             "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
-            "support": {
-                "issues": "https://github.com/theseer/tokenizer/issues",
-                "source": "https://github.com/theseer/tokenizer/tree/1.2.1"
-            },
             "funding": [
                 {
                     "url": "https://github.com/theseer",
@@ -3017,5 +2809,5 @@
     "prefer-lowest": false,
     "platform": [],
     "platform-dev": [],
-    "plugin-api-version": "2.3.0"
+    "plugin-api-version": "1.1.0"
 }

+ 4 - 2
src-php/app/internship/controller/ArticleController.php

@@ -1,9 +1,11 @@
 <?php
 namespace internship\controller;
 
-class ArticleController {
-	function getDoArticles() {
+use n2n\web\http\controller\ControllerAdapter;
 
+class ArticleController extends ControllerAdapter {
+	function getDoArticles() {
+        $this->sendJson(['hello' => 'world']);
 	}
 
 	function postDoArticle() {