我正在尝试在控制器中包含prestashop的web服务库,但是当我尝试包含这个类时,我得到了下一个错误:
Attempted to load class "PrestaShopWebService2" from namespace "AppBundle\Services".
Did you forget a "use" statement for another namespace?
Prestashop v1.5.6
PrestaShopWebService2:
namespace AppBundle\Services;
class PrestaShopWebService2
{//code}
DefaultController:
use AppBundle\Services\PrestaShopWebService2;
public function indexAction()
{
//code
$persta2 = new PrestaShopWebService2("MyURL","mykey", false);
//code
}
问题出在哪里?