mirror of
https://github.com/flarum/framework.git
synced 2024-12-04 08:13:39 +08:00
Add getters
This commit is contained in:
parent
9786568749
commit
1ae24178ff
|
@ -346,4 +346,20 @@ class ClientView implements Renderable
|
|||
'csrfToken' => $session->get('csrf_token')
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return User
|
||||
*/
|
||||
public function getActor()
|
||||
{
|
||||
return $this->actor;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Request
|
||||
*/
|
||||
public function getRequest()
|
||||
{
|
||||
return $this->request;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user