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

Client Class not found #15

Open
razorsharpshady opened this issue Jun 10, 2020 · 2 comments
Open

Client Class not found #15

razorsharpshady opened this issue Jun 10, 2020 · 2 comments

Comments

@razorsharpshady
Copy link

razorsharpshady commented Jun 10, 2020

First of all thank you for making this wrapper.
The issue that I'm facing is which ever class object I'm trying to intialize from the sdk I get the class not found error except for the Client.php class.
The issue can be resolved by matching the directory name and the class namespace.
e.g namespace Mediatoolkit\ActiveCampaign\Contacts;
should be namespace Mediatoolkit\ActiveCampaign\contacts;

namespace Mediatoolkit\ActiveCampaign\Deals;
should be namespace Mediatoolkit\ActiveCampaign\deals;

@orcinus
Copy link

orcinus commented Aug 21, 2020

It's actually the other way around - the folder names should match the classes.
deals should be renamed to Deals, contacts should be renamed to Contacts, etc.

That's the way every package and router under the sun works.

My guess is the authors of the library were using it on Windows, Mac (case-insensitive HFS+) or a similar non-case-sensitive filesystem/environment.

@mrweiner
Copy link

I added a patch to #13 to address the dir naming/PSR-4 compliance issue that's causing this.

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

3 participants