mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 18:17:31 +08:00
Add getters
This commit is contained in:
parent
aa516fb5c3
commit
08dae7b530
|
@ -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