-
Notifications
You must be signed in to change notification settings - Fork 8
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
Naming #28
Comments
FYI: How I've implemented my client library actually https://github.com/sulu/SuluSyliusConsumerBundle/blob/master/Gateway/CartGateway.php |
Isnt that what Im trying todo?
|
Yes.. maybe you are right. |
When I'm adding my custom api to this library I would need to overwrite the |
You would create one service for
Yes. Im not 100% sure this is the best way. But earlier today I did #27 |
In your current structure, for sure. But when I think about doctrine where you have a repository for each entity, maybe this should be the way to go here also. |
You are correct. That makes sense. An idea: you could register the productApi as a service by using the SyliusClient as a service Factory. Btw, While considering a solution to this, we should also consider how we do customer authentication. |
Hmm.. I'm not sure what this bundle could provide for this? I've implemented one in our plugin: I've then written a Symfony Authenticator, but this shouldn't be part of this bundle, right? |
I'm discovering the code and in my opinion the usage is a bit confusing.
For example:
$allProducts = $apiClient->product()->getAll()
The part
->product()
is a bit misleading in my opinion.Maybe introduce gateways for each api endpoint?
Then also the extension point for custom api`s would exists?
The text was updated successfully, but these errors were encountered: