undo session interface change

This commit is contained in:
Daniël Klabbers 2018-05-21 21:19:38 +02:00
parent 4654c3eb50
commit c293fdaec0
No known key found for this signature in database
GPG Key ID: 823B3D5DDF3FBAB6

View File

@ -35,7 +35,7 @@ use Flarum\User\Event\PasswordChanged;
use Flarum\User\Event\Registered; use Flarum\User\Event\Registered;
use Flarum\User\Event\Renamed; use Flarum\User\Event\Renamed;
use Illuminate\Contracts\Hashing\Hasher; use Illuminate\Contracts\Hashing\Hasher;
use Symfony\Component\HttpFoundation\Session\SessionInterface; use Illuminate\Contracts\Session\Session;
/** /**
* @property int $id * @property int $id
@ -82,7 +82,7 @@ class User extends AbstractModel
protected $permissions = null; protected $permissions = null;
/** /**
* @var SessionInterface * @var Session
*/ */
protected $session; protected $session;
@ -698,7 +698,7 @@ class User extends AbstractModel
} }
/** /**
* @return SessionInterface * @return Session
*/ */
public function getSession() public function getSession()
{ {
@ -706,9 +706,9 @@ class User extends AbstractModel
} }
/** /**
* @param SessionInterface $session * @param Session $session
*/ */
public function setSession(SessionInterface $session) public function setSession(Session $session)
{ {
$this->session = $session; $this->session = $session;
} }