Skip to content

Commit

Permalink
Remove usage of apiato caller style and use FQCN instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Apr 11, 2021
1 parent c6eb62d commit 61d5944
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions UI/API/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@
namespace App\Containers\VendorSection\Welcome\UI\API\Controllers;

use Apiato\Core\Foundation\Facades\Apiato;
use App\Containers\VendorSection\Welcome\Actions\FindMessageForApiRootVisitorAction;
use App\Containers\VendorSection\Welcome\Actions\FindMessageForApiV1VisitorAction;
use App\Ship\Parents\Controllers\ApiController;
use Illuminate\Http\JsonResponse;

class Controller extends ApiController
{
public function apiRoot(): JsonResponse
{
$message = Apiato::call('Welcome@FindMessageForApiRootVisitorAction');
return response()->json($message);
}
public function apiRoot(): JsonResponse
{
$message = Apiato::call(FindMessageForApiRootVisitorAction::class);
return response()->json($message);
}

public function v1ApiLandingPage(): JsonResponse
{
$message = Apiato::call('Welcome@FindMessageForApiV1VisitorAction');
return response()->json($message);
}
public function v1ApiLandingPage(): JsonResponse
{
$message = Apiato::call(FindMessageForApiV1VisitorAction::class);
return response()->json($message);
}
}

0 comments on commit 61d5944

Please sign in to comment.