예제 #1
0
 /**
  * Initializes the legacy session system with injected settings.
  * This is method is to be used when Symfony2 "drives" the session, it
  * replaces start/lazyStart in such case.
  *
  * @param string $name Name of the session
  * @param bool $started Whether the session is already started or not
  * @param string $ns Namespace ie the key under which session data should
  *        be put in global array
  */
 public static function init($name, $started, $ns, ezpSessionHandler $handler)
 {
     if (self::$hasStarted) {
         return;
     }
     self::registerFunctions($name, $handler);
     self::$namespace = $ns;
     if (self::$hasSessionCookie && !$started) {
         self::forceStart();
     }
 }