aboutsummaryrefslogtreecommitdiffhomepage
path: root/login/app/sprinkles/core/src/Controller
diff options
context:
space:
mode:
authormarvin-borner@live.com2018-04-15 19:16:19 +0200
committermarvin-borner@live.com2018-04-15 19:16:19 +0200
commit619b01b3615458c4ed78bfaeabb6b1a47cc8ad8b (patch)
treef6be4552e31964ac894860bcfdc832e3c5740ad8 /login/app/sprinkles/core/src/Controller
parent937100e9bb2a2f5ab035e283e01e6d96e569ee51 (diff)
Preparing for soon implementation of content management system
Diffstat (limited to 'login/app/sprinkles/core/src/Controller')
-rwxr-xr-xlogin/app/sprinkles/core/src/Controller/CoreController.php19
1 files changed, 7 insertions, 12 deletions
diff --git a/login/app/sprinkles/core/src/Controller/CoreController.php b/login/app/sprinkles/core/src/Controller/CoreController.php
index 0dd8165..b5f6e3c 100755
--- a/login/app/sprinkles/core/src/Controller/CoreController.php
+++ b/login/app/sprinkles/core/src/Controller/CoreController.php
@@ -5,6 +5,7 @@
* @link https://github.com/userfrosting/UserFrosting
* @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
*/
+
namespace UserFrosting\Sprinkle\Core\Controller;
use Psr\Http\Message\ServerRequestInterface as Request;
@@ -26,8 +27,7 @@ class CoreController extends SimpleController
* By default, this is the page that non-authenticated users will first see when they navigate to your website's root.
* Request type: GET
*/
- public function pageIndex($request, $response, $args)
- {
+ public function pageIndex($request, $response, $args) {
return $this->ci->view->render($response, 'pages/index.html.twig');
}
@@ -36,8 +36,7 @@ class CoreController extends SimpleController
*
* Request type: GET
*/
- public function pageAbout($request, $response, $args)
- {
+ public function pageAbout($request, $response, $args) {
return $this->ci->view->render($response, 'pages/about.html.twig');
}
@@ -46,8 +45,7 @@ class CoreController extends SimpleController
*
* Request type: GET
*/
- public function pageLegal($request, $response, $args)
- {
+ public function pageLegal($request, $response, $args) {
return $this->ci->view->render($response, 'pages/legal.html.twig');
}
@@ -56,8 +54,7 @@ class CoreController extends SimpleController
*
* Request type: GET
*/
- public function pagePrivacy($request, $response, $args)
- {
+ public function pagePrivacy($request, $response, $args) {
return $this->ci->view->render($response, 'pages/privacy.html.twig');
}
@@ -67,8 +64,7 @@ class CoreController extends SimpleController
* The alert stream contains messages which have been generated by calls to `MessageStream::addMessage` and `MessageStream::addMessageTranslated`.
* Request type: GET
*/
- public function jsonAlerts($request, $response, $args)
- {
+ public function jsonAlerts($request, $response, $args) {
return $response->withJson($this->ci->alerts->getAndClearMessages());
}
@@ -76,8 +72,7 @@ class CoreController extends SimpleController
* Handle all requests for raw assets.
* Request type: GET
*/
- public function getAsset($request, $response, $args)
- {
+ public function getAsset($request, $response, $args) {
// By starting this service, we ensure that the timezone gets set.
$config = $this->ci->config;