mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +02:00
Change some methods from private to protected, to be able to extend the affected classes (#3802)
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user