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
Create method #14
Comments
Can you explain your issue? |
Whoops Anyways... Would you be opposed to a static create() method that took the service name and created the object for you? (Like omnipay) Just trying to avoid including a bunch of classes that are actually not needed just to use a switch to figure out which one I need for this particular instance. |
Something like this? Omnimail::create(Omnimail::SendGrid, $apiKey); |
I think you would need to pass an array or interface rather than a single variable as it might vary |
So like this: Omnimail::create(Omnimail::SendGrid, [
'apiKey' => $apiKey
]); Anyone got time for this? Should be a simple implementation. |
Merged into develop branch. |
No description provided.
The text was updated successfully, but these errors were encountered: