I'm trying to import Prestashop webservice in a Laravel 5 project to use it in a command.
This is the file path:
app/ecommerce/prestashop/PSWebServiceLibrary.php
And this is the structure of the file:
<?php
namespace app/ecommerce/prestashop/;
use \Exception;
class PrestaShopWebservice
{
}
class PrestaShopWebserviceException extends Exception { }
But when I try to import this file to a controller like this:
use \App\ecommerce\prestashop\PSWebServiceLibrary;
$webService = new PrestaShopWebservice($store_path, $auth_key, false);
I get this error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'App\EcommercePlatforms\Prestashop\PSWebServiceLibrary\PrestaShopWebservice' not found
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire