Beispiel #1
0
 public static function wallet($serviceName)
 {
     if (!isset(self::$wallet)) {
         //// Hack //// TODO: passar o init da sessão no login do expresso
         Config::init();
         if (isset($_SESSION['wallet'])) {
             self::$wallet = $_SESSION['wallet'];
         }
         /////////////
     }
     return isset(self::$wallet[$serviceName]) ? self::$wallet[$serviceName] : false;
 }