composer安裝的騰訊云sdk vendor沒有自動加載,試了網(wǎng)上幾種方式?jīng)]有成功
<?php
namespace app\controller;
use TencentCloud\Common\Credential;
use TencentCloud\Common\Profile\ClientProfile;
use TencentCloud\Common\Profile\HttpProfile;
use TencentCloud\Common\Exception\TencentCloudSDKException;
use TencentCloud\Ims\V20201229\ImsClient;
use TencentCloud\Ims\V20201229\Models\ImageModerationRequest;
use TencentCloud\Tms\V20201229\TmsClient;
use TencentCloud\Tms\V20201229\Models\TextModerationRequest;
Error: Class 'TencentCloud\Common\Credential' not found in /www/wwwroot/syadmin/apiweb/app/controller/TencentCloudContent.php:74<br />
這個(gè)是需要你在composer里引入一下就行了,我集成YII框架的時(shí)候也遇到了,然后我加了下面一段之后重新 composer update -vvvv 就好了