Bind QrCodeService to the Service Container

This commit is contained in:
Bubka
2022-07-29 16:42:52 +02:00
parent 9bf165895f
commit 14609dec95
4 changed files with 12 additions and 25 deletions

View File

@ -4,7 +4,6 @@ namespace App\Api\v1\Controllers;
use App\Models\TwoFAccount;
use App\Services\QrCodeService;
use App\Services\TwoFAccountService;
use App\Api\v1\Requests\QrCodeDecodeRequest;
use App\Http\Controllers\Controller;
@ -16,23 +15,16 @@ class QrCodeController extends Controller
*/
protected $qrcodeService;
/**
* The TwoFAccount Service instance.
*/
protected $twofaccountService;
/**
* Create a new controller instance.
*
* @param \App\Services\QrCodeService $qrcodeService
* @param \App\Services\TwoFAccountService $twofaccountService
* @return void
*/
public function __construct(QrCodeService $qrcodeService, TwoFAccountService $twofaccountService)
public function __construct(QrCodeService $qrcodeService)
{
$this->qrcodeService = $qrcodeService;
$this->twofaccountService = $twofaccountService;
}