From 82a550633ced8582b926fe186dfc0330e92da1ac Mon Sep 17 00:00:00 2001 From: Donald Pakkies Date: Fri, 8 Feb 2019 23:02:48 +0200 Subject: [PATCH 1/2] Package: version bump --- Blulight.php | 60 --------------------------------------------------- composer.json | 2 +- 2 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 Blulight.php diff --git a/Blulight.php b/Blulight.php deleted file mode 100644 index dc198b7..0000000 --- a/Blulight.php +++ /dev/null @@ -1,60 +0,0 @@ -run(); - } - - /** - * Run blulight - * - * @return void - */ - public function run() : bool - { - $this->startSession(); - $this->loadVariables(); - return true; - } - - /** - * Start the session - * - * @return mixed - */ - private function startSession() - { - if (Config::has('session') && is_array($session = Config::get('session'))) { - return session_start($session); - } - - session_start([ - 'name' => 'modulus_session' - ]); - } - - /** - * Get Variables - * - * @return void - */ - private function loadVariables() : void - { - if (isset($_SESSION['application']['with'])) { - Variable::$data = $_SESSION['application']['with']; - unset($_SESSION['application']['with']); - } - } -} diff --git a/composer.json b/composer.json index 4477942..0f8edd0 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "modulusphp/framework", "description": "Framework component for modulusPHP", - "version": "1.9.8.7", + "version": "1.9.8.8", "license": "MIT", "type": "package", "authors": [{ From b10694c792846246c05d1744daa5e5334f4e8b92 Mon Sep 17 00:00:00 2001 From: Donald Pakkies Date: Fri, 8 Feb 2019 23:04:12 +0200 Subject: [PATCH 2/2] Ref: revert deletation --- Blulight.php | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Blulight.php diff --git a/Blulight.php b/Blulight.php new file mode 100644 index 0000000..dc198b7 --- /dev/null +++ b/Blulight.php @@ -0,0 +1,60 @@ +run(); + } + + /** + * Run blulight + * + * @return void + */ + public function run() : bool + { + $this->startSession(); + $this->loadVariables(); + return true; + } + + /** + * Start the session + * + * @return mixed + */ + private function startSession() + { + if (Config::has('session') && is_array($session = Config::get('session'))) { + return session_start($session); + } + + session_start([ + 'name' => 'modulus_session' + ]); + } + + /** + * Get Variables + * + * @return void + */ + private function loadVariables() : void + { + if (isset($_SESSION['application']['with'])) { + Variable::$data = $_SESSION['application']['with']; + unset($_SESSION['application']['with']); + } + } +}