-
Notifications
You must be signed in to change notification settings - Fork 48
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
Changing Class names to customers needs #27
Comments
You have to replace the name in the source code as well, that is, the files you get when you download the library from here, all of them. |
So I have renamed all mailwizzapi_ to mynameapi_ that's including the whole downloaded project, if you mean those files from this repository ... Or do you mean smth different? |
That's what i meant, but also file names, ok? |
Yes I did ... thou the error says that the function doesn't exist it does ... could that be connected to an autoloader issue? |
@ONIXTurtle - if you have installed from composer, you have to also modify the composer.json file in the autoload section and then recreate the composer files to autoload your class by dumping the new autoloader with |
It tells me the following: |
? |
Can you place the code in a repository so we can take a look? Or somewhere to download it? |
absolutely here it is: https://github.com/ONIXTurtle/gomail-php-sdk-test |
Here's your issue: https://github.com/Go-On-Network/gomail-php-sdk/blob/master/composer.json#L18 most likely. So replace MailWizzApi_ with your naming everywhere. |
Doesn't work I'm getting the error on the rep above: https://github.com/ONIXTurtle/gomail-php-sdk-test that it can't find the class: MacBook-Pro:examples torstenhogel$ php countries.php
|
At https://github.com/ONIXTurtle/gomail-php-sdk-test/blob/master/GoMailApi/Autoloader.php#L42 put 9 instead of 12. |
Awesome that fixed it ;) |
Hey there,
I have the extended license and wanted to change the class names (MailWizzApi_{NAME}) to something different.
I used Sublimes Replace function but it seems to break everything because it tells me:
I've also tried running cleanups via composer like cache e.g. but it didn't work.
Do you have any idea why this happens?
The text was updated successfully, but these errors were encountered: