Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class namespace issue if package installed in a parent directory #630

Open
diamond-fish opened this issue Oct 20, 2023 · 0 comments
Open

Comments

@diamond-fish
Copy link

Problem description:

How do I reference the use statements if selling-partner-api is installed in a parent directory?

I'm trying the quickstart code but it's not working.

Error:

PHP Fatal error:  Uncaught Error: Class "SellingPartnerApi\Endpoint" not found

Code

require_once(__DIR__ . '../../../../../../vendor/autoload.php');

use SellingPartnerApi\Api\SellersV1Api as SellersApi;
use SellingPartnerApi\Configuration;
use SellingPartnerApi\Endpoint;

$config = new Configuration(...);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant