Browse Source

Enforce PHP extensions in Composer

Cleanup Session
pull/183/head
Timothée Jaussoin 10 years ago
parent
commit
b18def8369
  1. 4
      composer.json
  2. 10
      composer.lock
  3. 27
      system/Session.php

4
composer.json

@ -6,6 +6,10 @@
},
"require": {
"php": ">=5.4.0",
"ext-curl": "*",
"ext-imagick": "*",
"monolog/monolog": "1.8.*",
"libchart/libchart": "dev-master",
"rain/raintpl": "dev-master",

10
composer.lock

@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "dc85c5d3228c63268ce4e4ebcab697e0",
"content-hash": "ee7a70320957c4309628805376724c1f",
"hash": "4c72ef555d19e53491e634a2be29d39c",
"content-hash": "c4838cac70dda0fbcb390ed1c8f3d86b",
"packages": [
{
"name": "cboden/ratchet",
@ -1692,6 +1692,10 @@
},
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform": {
"php": ">=5.4.0",
"ext-curl": "*",
"ext-imagick": "*"
},
"platform-dev": []
}

27
system/Session.php

@ -1,38 +1,11 @@
<?php
/**
* @file Session.php
* This file is part of MOVIM.
*
* @brief Class that manages session variables with minimal lock time.
*
* @author Guillaume Pasquet <etenil@etenilsrealm.nl>
*
* Yes, this class is again a singleton. But this is justified by the fact that
* there can only be one active session that is locked down.
*
* @version 1.0
* @date 26 April 2011
*
* Copyright (C)2011 MOVIM
*
* See COPYING for licensing information.
*/
class Session
{
protected static $instance;
protected static $sid = null;
protected $values = array();
/**
* Loads and immediately closes the session variables for the namespace
* $name.
*/
protected function __construct()
{
}
/**
* Gets a session handle.
*/

Loading…
Cancel
Save