diff options
author | Arnold Daniels <arnold@jasny.net> | 2016-11-18 11:42:39 +0100 |
---|---|---|
committer | Arnold Daniels <arnold@jasny.net> | 2016-11-18 11:42:39 +0100 |
commit | 72a372f22c95cde490c9affaadccf3110637e554 (patch) | |
tree | 975353010c8946a15e05e5dd73323500848f0de4 /src/Controller.php | |
parent | 1d84d01f35547bb53a78f33d41a8002f12cbf18c (diff) | |
download | controller-72a372f22c95cde490c9affaadccf3110637e554.zip controller-72a372f22c95cde490c9affaadccf3110637e554.tar.gz controller-72a372f22c95cde490c9affaadccf3110637e554.tar.bz2 |
Make using sessions opt-in
Diffstat (limited to 'src/Controller.php')
-rw-r--r-- | src/Controller.php | 7 |
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(); } |