/** * Return hashed version of session id * * @return string */ protected function getSessionId() { $sessionId = $this->session->getId(); // by default we provide only hashed version of session id $hashed = sha1($sessionId); return $hashed; }
/** * @param EntityFactory $entityFactory * @param SessionStore $session * @param LaravelConfig $laravelConfig * @param Request $request */ public function __construct(EntityFactory $entityFactory, SessionStore $session, LaravelConfig $laravelConfig, Request $request) { $this->entityFactory = $entityFactory; $this->context = $session->getId(); $this->laravelConfig = $laravelConfig; if ($overrides = $request->input(self::OVERRIDE_KEY)) { foreach (explode(self::OVERRIDE_DELIMITER, $overrides) as $override) { $override = explode(self::OVERRIDE_SETTER, $override); if (count($override) != 2) { continue; } list($feature, $variant) = $override; $this->overrides[$feature] = $variant; } } }
/** * Returns the session ID. * * @return string The session ID. * @static */ public static function getId() { return \Illuminate\Session\Store::getId(); }