mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 02:23:00 +08:00
Change some methods from private to protected, to be able to extend the affected classes (#3802)
This commit is contained in:
parent
803f0cd0f4
commit
1d20f4d4aa
|
@ -113,7 +113,7 @@ class Tag
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
private function getSortMap()
|
||||
protected function getSortMap()
|
||||
{
|
||||
return resolve('flarum.forum.discussions.sortmap');
|
||||
}
|
||||
|
@ -121,12 +121,12 @@ class Tag
|
|||
/**
|
||||
* Get the result of an API request to list discussions.
|
||||
*/
|
||||
private function getApiDocument(Request $request, array $params)
|
||||
protected function getApiDocument(Request $request, array $params)
|
||||
{
|
||||
return json_decode($this->api->withParentRequest($request)->withQueryParams($params)->get('/discussions')->getBody());
|
||||
}
|
||||
|
||||
private function getTagsDocument(Request $request, string $slug)
|
||||
protected function getTagsDocument(Request $request, string $slug)
|
||||
{
|
||||
return json_decode($this->api->withParentRequest($request)->withQueryParams([
|
||||
'include' => 'children,children.parent,parent,parent.children.parent,state'
|
||||
|
|
|
@ -100,7 +100,7 @@ class Tags
|
|||
return $document;
|
||||
}
|
||||
|
||||
private function getTagsDocument(Request $request)
|
||||
protected function getTagsDocument(Request $request)
|
||||
{
|
||||
return json_decode($this->api->withParentRequest($request)->withQueryParams([
|
||||
'include' => 'children,lastPostedDiscussion,parent'
|
||||
|
|
Loading…
Reference in New Issue
Block a user