실례를 찾을 수없는 사용, 나는 laravel 컨트롤러로 파일 PHP를 포함하려고 노력하지만, 작동하지 않는이 SDK GitHublaravel은 PHP (SDK)를 포함 PSR-4 클래스
을 사용하고 싶습니다.
후, 나는 PSR-4 .. 클래스 XXX/XXX/찾을 수 없음 ..
오류 메시지 클래스 '앱 \ 컨트롤러 \ \ ECPay_AllInOne HTTP를'
를 찾을 수 없습니다 사용 composer.json를 업데이트 할 수 있습니다어떻게하면됩니까? 저를 도와주세요, 감사합니다 ~
내 프로젝트 SDK 파일 :
composer.json
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/",
"ECPaySDK\\": "ECPaySDK/"
},
"files": [
"ECPaySDK/ECPayPaymentIntegration.php"
]
},
내 컨트롤러
<?php
namespace App\Http\Controllers;
use ECPaySDK;
use Illuminate\Http\Request;
use Mail;
use App\Http\Requests;
use App\Travel_user;
use App\Travel_user_place;
use App\Place;
use App\Files;
use App\House;
use DB;
use Illuminate\Support\Facades\File;
class BackendController extends Controller
SDK 클래스
<?php
namespace ECPaySDK;
abstract class ECPay_PaymentMethod {
const ALL = 'ALL';
오류 짝을 이해하지 못했다 실행? 명확히하십시오. – linuxartisan
@linuxartisan 죄송합니다. 내 오류 메시지 – Bruce