summaryrefslogtreecommitdiffstats
path: root/src/Controller.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Controller.php')
-rw-r--r--src/Controller.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Controller.php b/src/Controller.php
index 93ba38d..b3014f9 100644
--- a/src/Controller.php
+++ b/src/Controller.php
@@ -12,8 +12,7 @@ abstract class Controller
{
use Controller\Respond,
Controller\CheckRequest,
- Controller\CheckResponse,
- Controller\Session;
+ Controller\CheckResponse;
/**
* Server request
@@ -86,7 +85,9 @@ abstract class Controller
$this->request = $request;
$this->response = $response;
- $this->useSession();
+ if (method_exists($this, 'useSession')) {
+ $this->useSession();
+ }
return $this->run();
}