Skip to content

Commit

Permalink
Merge pull request #538 from MrMage/make-responsecallstrategy-customi…
Browse files Browse the repository at this point in the history
…zable

Make a few `ResponseCallStrategy` methods `protected`.
  • Loading branch information
shalvah authored Jul 15, 2019
2 parents d07f68a + e927f70 commit 5f9babf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tools/ResponseStrategies/ResponseCallStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function configureEnvironment(array $rulesToApply)
*
* @return Request
*/
private function prepareRequest(Route $route, array $rulesToApply, array $bodyParams, array $queryParams)
protected function prepareRequest(Route $route, array $rulesToApply, array $bodyParams, array $queryParams)
{
$uri = Utils::getFullUrl($route, $rulesToApply['bindings'] ?? []);
$routeMethods = $this->getMethods($route);
Expand Down Expand Up @@ -261,7 +261,7 @@ private function addBodyParameters(Request $request, array $body)
*
* @return \Illuminate\Http\JsonResponse|mixed|\Symfony\Component\HttpFoundation\Response
*/
private function makeApiCall(Request $request)
protected function makeApiCall(Request $request)
{
if (config('apidoc.router') == 'dingo') {
$response = $this->callDingoRoute($request);
Expand All @@ -279,7 +279,7 @@ private function makeApiCall(Request $request)
*
* @return \Symfony\Component\HttpFoundation\Response
*/
private function callLaravelRoute(Request $request): \Symfony\Component\HttpFoundation\Response
protected function callLaravelRoute(Request $request): \Symfony\Component\HttpFoundation\Response
{
$kernel = app(\Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle($request);
Expand Down

0 comments on commit 5f9babf

Please sign in to comment.