protected static function prependSessionKey() { if (self::$prependedSessionKey) { return; } $config = Bootstrap::get('config'); if (!isset($config['session']) || !isset($config['session']['prefix']) || empty($config['session']['prefix'])) { throw new \RuntimeException(__t('you_must_define_session_prefix_in_configuration')); } self::$SESSION_KEY = $config['session']['prefix'] . self::$SESSION_KEY; self::$prependedSessionKey = true; }
protected static function prependSessionKey() { if (self::$prependedSessionKey) { return; } $config = Bootstrap::get('config'); if (!isset($config['session']) || !isset($config['session']['prefix']) || empty($config['session']['prefix'])) { throw new \RuntimeException("You must define session.prefix in api/configuration.php - see example configuration file."); } self::$SESSION_KEY = $config['session']['prefix'] . self::$SESSION_KEY; self::$prependedSessionKey = true; }