Summary Files Commits Branches @commit @diff @stats
path: root / src / controllers / BaseController.php
diff options
context:
space:
mode:
Commit976b399f90fc5c0152f87e474e61e6065c0e7a5f (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-04-03 16:25:24 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-04-03 16:25:24 +0300
Files5cc07b1f396ba224e8fb265444feba6d8dc18a76 /src/controllers/BaseController.php
devrix-job-board-976b399f90fc5c0152f87e474e61e6065c0e7a5f.tar
devrix-job-board-976b399f90fc5c0152f87e474e61e6065c0e7a5f.tar.gz
devrix-job-board-976b399f90fc5c0152f87e474e61e6065c0e7a5f.zip
Parent6d9f958082d7c1ebee30b0477bf6446fb3d09abb (diff)
Updated the comments and documentation in some controllers
1 files changed, 4 insertions, 0 deletions
-rw-r--r--src/controllers/BaseController.php4
diff --git a/src/controllers/BaseController.php b/src/controllers/BaseController.php
index f766398..412cf25 100644
--- a/src/controllers/BaseController.php
+++ b/src/controllers/BaseController.php
@@ -1,5 +1,9 @@
<?php
class BaseController {
+ /**
+ * Calls the get, post, put or delete static methods, depending on the server request method ($_SERVER['REQUEST_METHOD'])
+ * **By default** all requests that are not POST, PUT or DELETE execute the GET request method
+ */
public static function invoke() {
switch ($_SERVER['REQUEST_METHOD']) {
case 'POST':