aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Micieli <micieli@laposte.net>2019-09-26 11:05:34 +0200
committerWilly Micieli <micieli@laposte.net>2019-09-26 11:05:34 +0200
commit013a02405e51c846ab28881a38aaa7ec78712595 (patch)
treedcc53160f16473283e19f5218eb5eaa23234c1ab
parent00d45240fa96c46189952e98294f5d9d158ba169 (diff)
downloadshaolin-013a02405e51c846ab28881a38aaa7ec78712595.zip
shaolin-013a02405e51c846ab28881a38aaa7ec78712595.tar.gz
clean admincontroller code
-rw-r--r--app/Controllers/AdminController.php24
1 files changed, 20 insertions, 4 deletions
diff --git a/app/Controllers/AdminController.php b/app/Controllers/AdminController.php
index 5b73c55..e27276f 100644
--- a/app/Controllers/AdminController.php
+++ b/app/Controllers/AdminController.php
@@ -3,9 +3,13 @@
namespace App\Controllers {
use Imperium\Controller\Controller;
- use Imperium\File\File;
-
- Class AdminController extends Controller
+ use Imperium\Exception\Kedavra;
+ use Symfony\Component\HttpFoundation\Response;
+ use Twig\Error\LoaderError;
+ use Twig\Error\RuntimeError;
+ use Twig\Error\SyntaxError;
+
+ Class AdminController extends Controller
{
public function before_action()
@@ -18,7 +22,19 @@ namespace App\Controllers {
}
- public function admin()
+ /**
+ *
+ * Display admin home
+ *
+ * @return Response
+ *
+ * @throws Kedavra
+ * @throws LoaderError
+ * @throws RuntimeError
+ * @throws SyntaxError
+ *
+ */
+ public function admin(): Response
{
$tables = $this->tables();
return $this->view('@admin/admin',compact('tables'));