mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
undo session interface change
This commit is contained in:
parent
4654c3eb50
commit
c293fdaec0
|
@ -35,7 +35,7 @@ use Flarum\User\Event\PasswordChanged;
|
|||
use Flarum\User\Event\Registered;
|
||||
use Flarum\User\Event\Renamed;
|
||||
use Illuminate\Contracts\Hashing\Hasher;
|
||||
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
||||
use Illuminate\Contracts\Session\Session;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
|
@ -82,7 +82,7 @@ class User extends AbstractModel
|
|||
protected $permissions = null;
|
||||
|
||||
/**
|
||||
* @var SessionInterface
|
||||
* @var Session
|
||||
*/
|
||||
protected $session;
|
||||
|
||||
|
@ -698,7 +698,7 @@ class User extends AbstractModel
|
|||
}
|
||||
|
||||
/**
|
||||
* @return SessionInterface
|
||||
* @return Session
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user