You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class SessionRepostory extends ArrayAccessRepository
{
publicfunction__construct(Session$session)
{
if (!$this->isSessionActive()) {
thrownewCacheException('PHP session must be active.');
}
parent::__construct($session);
}
}
Create wrapper class for the $_SESSION global that implements \ArrayAccess
Create ArrayAccessRepository which accepts both objects implementing ArrayAccess and real arrays.
Transform the SessionRepository to use the ArrayAccessRepository and SessionWrapper
Transform the ArrayRepository to use the ArrayAccessRepository
The text was updated successfully, but these errors were encountered: