From 73607dd70fb9c521fb086ea133d6cc623319618d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 1 Apr 2016 22:16:21 +0200 Subject: [PATCH] Routings moved to routing files --- Admin/Routes/console.php | 3 ++ Admin/Routes/http.php | 76 ++++++++++++++++++++++++++++++++++++++++ Admin/Routes/socket.php | 3 ++ Controller.php | 20 ----------- 4 files changed, 82 insertions(+), 20 deletions(-) create mode 100644 Admin/Routes/console.php create mode 100644 Admin/Routes/http.php create mode 100644 Admin/Routes/socket.php diff --git a/Admin/Routes/console.php b/Admin/Routes/console.php new file mode 100644 index 0000000..45b4afe --- /dev/null +++ b/Admin/Routes/console.php @@ -0,0 +1,3 @@ + [ + [ + 'dest' => '\Modules\Organization\Controller:viewUnitList', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/unit/profile.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewUnitProfile', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/unit/create.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewUnitCreate', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/department/list.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewDepartmentList', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/department/profile.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewDepartmentProfile', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/department/create.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewDepartmentCreate', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/position/list.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewPositionList', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/position/profile.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewPositionProfile', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], + '^.*/backend/organization/position/create.*$' => [ + [ + 'dest' => '\Modules\Organization\Controller:viewPositionCreate', + 'verb' => RouteVerb::GET, + 'result' => ViewType::HTML, + 'layout' => ViewLayout::MAIN, + ], + ], +]; diff --git a/Admin/Routes/socket.php b/Admin/Routes/socket.php new file mode 100644 index 0000000..d80e21c --- /dev/null +++ b/Admin/Routes/socket.php @@ -0,0 +1,3 @@ + [['dest' => '\Modules\Organization\Controller:viewUnitList', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/unit/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/unit/create.*$' => [['dest' => '\Modules\Organization\Controller:viewUnitCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - - '^.*/backend/organization/department/list.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentList', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/department/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/department/create.*$' => [['dest' => '\Modules\Organization\Controller:viewDepartmentCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - - '^.*/backend/organization/position/list.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionList', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/position/profile.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionProfile', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - '^.*/backend/organization/position/create.*$' => [['dest' => '\Modules\Organization\Controller:viewPositionCreate', 'method' => 'GET', 'type' => ViewLayout::MAIN],], - ]; - /** * @param RequestAbstract $request Request * @param ResponseAbstract $response Response