mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
30ed77f304
# Conflicts: # resources/assets/vue/components/accounts/forms/RegistrationFormComponent.vue # routes/api.php
34 lines
798 B
PHP
34 lines
798 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Affiliate\ControllersLogic;
|
|
|
|
use App\Classes\Modules\Affiliate\Services\GetsAffiliateSettings;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Illuminate\Http\Request;
|
|
|
|
class GetAffiliateSettingsLogic
|
|
{
|
|
/** @var GetsAffiliateSettings */
|
|
private $getsAffiliateSettings;
|
|
|
|
/**
|
|
* @param GetsAffiliateSettings $getsAffiliateSettings
|
|
*/
|
|
public function __construct(GetsAffiliateSettings $getsAffiliateSettings)
|
|
{
|
|
$this->getsAffiliateSettings = $getsAffiliateSettings;
|
|
}
|
|
|
|
/**
|
|
* @param Request $request
|
|
* @return JsonResponse
|
|
*/
|
|
public function execute(Request $request): JsonResponse
|
|
{
|
|
$settings = $this->getsAffiliateSettings->execute();
|
|
|
|
return response()->json($settings);
|
|
}
|
|
}
|
|
|