Summary Files Commits Branches @commit @diff @stats
path: root / src / controllers / BaseController.php
diff options
context:
space:
mode:
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':