]> git.mxchange.org Git - friendica.git/commitdiff
Rename to AccountManagementControlDocument
authorPhilipp Holzer <admin@philipp.info>
Wed, 1 May 2019 15:05:46 +0000 (17:05 +0200)
committerPhilipp Holzer <admin@philipp.info>
Wed, 1 May 2019 15:05:46 +0000 (17:05 +0200)
src/App/Router.php
src/Module/AccMgmtControlDoc.php [deleted file]
src/Module/AccountManagementControlDocument.php [new file with mode: 0644]

index 0785de1b980be327761e81ec1e9ba32fc03ae892..039d3e2cf9fb1e133d7283a6bf9b805a10b0143e 100644 (file)
@@ -41,7 +41,7 @@ class Router
        public function collectRoutes()
        {
                $this->routeCollector->addRoute(['GET', 'POST'], '/itemsource[/{guid}]', Module\Itemsource::class);
-               $this->routeCollector->addRoute(['GET'],         '/amcd',                Module\AccMgmtControlDoc::class);
+               $this->routeCollector->addRoute(['GET'],         '/amcd',                Module\AccountManagementControlDocument::class);
        }
 
        public function __construct(RouteCollector $routeCollector = null)
diff --git a/src/Module/AccMgmtControlDoc.php b/src/Module/AccMgmtControlDoc.php
deleted file mode 100644 (file)
index bc7c8e8..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<?php
-
-namespace Friendica\Module;
-
-use Friendica\BaseModule;
-
-/**
- * Static definition for the Firefox Account Manager
- *
- * @see https://wiki.mozilla.org/Labs/Weave/Identity/Account_Manager/Spec/3#Contents_of_the_Account_Management_Control_Document
- */
-class AccMgmtControlDoc extends BaseModule
-{
-       public static function rawContent()
-       {
-               parent::rawContent();
-
-               $output = [
-                       'version' => 1,
-                       'sessionstatus' => [
-                               'method' => 'GET',
-                               'path' => '/session',
-                       ],
-                       'auth-methods' => [
-                               'username-password-form' => [
-                                       'connect' => [
-                                               'method' => 'POST',
-                                               'path' => '/login',
-                                               'params' => [
-                                                       'username' => 'login-name',
-                                                       'password' => 'password',
-                                               ],
-                                               'onsuccess' => [
-                                                       'action' => 'reload',
-                                               ],
-                                       ],
-                                       'disconnect' => [
-                                               'method' => 'GET',
-                                               'path' => '/logout',
-                                       ],
-                               ],
-                       ],
-                       'methods' => [
-                               'username-password-form' => [
-                                       'connect' => [
-                                               'method' => 'POST',
-                                               'path' => '/login',
-                                               'params' => [
-                                                       'username' => 'login-name',
-                                                       'password' => 'password',
-                                               ],
-                                               'onsuccess' => [
-                                                       'action' => 'reload',
-                                               ],
-                                       ],
-                                       'disconnect' => [
-                                               'method' => 'GET',
-                                               'path' => '/logout',
-                                       ],
-                               ],
-                       ],
-               ];
-
-               echo json_encode($output);
-               exit();
-       }
-}
diff --git a/src/Module/AccountManagementControlDocument.php b/src/Module/AccountManagementControlDocument.php
new file mode 100644 (file)
index 0000000..2e2a9e4
--- /dev/null
@@ -0,0 +1,65 @@
+<?php
+
+namespace Friendica\Module;
+
+use Friendica\BaseModule;
+
+/**
+ * Static definition for the Firefox Account Manager
+ *
+ * @see https://wiki.mozilla.org/Labs/Weave/Identity/Account_Manager/Spec/3#Contents_of_the_Account_Management_Control_Document
+ */
+class AccountManagementControlDocument extends BaseModule
+{
+       public static function rawContent()
+       {
+               $output = [
+                       'version' => 1,
+                       'sessionstatus' => [
+                               'method' => 'GET',
+                               'path' => '/session',
+                       ],
+                       'auth-methods' => [
+                               'username-password-form' => [
+                                       'connect' => [
+                                               'method' => 'POST',
+                                               'path' => '/login',
+                                               'params' => [
+                                                       'username' => 'login-name',
+                                                       'password' => 'password',
+                                               ],
+                                               'onsuccess' => [
+                                                       'action' => 'reload',
+                                               ],
+                                       ],
+                                       'disconnect' => [
+                                               'method' => 'GET',
+                                               'path' => '/logout',
+                                       ],
+                               ],
+                       ],
+                       'methods' => [
+                               'username-password-form' => [
+                                       'connect' => [
+                                               'method' => 'POST',
+                                               'path' => '/login',
+                                               'params' => [
+                                                       'username' => 'login-name',
+                                                       'password' => 'password',
+                                               ],
+                                               'onsuccess' => [
+                                                       'action' => 'reload',
+                                               ],
+                                       ],
+                                       'disconnect' => [
+                                               'method' => 'GET',
+                                               'path' => '/logout',
+                                       ],
+                               ],
+                       ],
+               ];
+
+               echo json_encode($output);
+               exit();
+       }
+}