-
Notifications
You must be signed in to change notification settings - Fork 3
Adds middleware locator #4
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
Adds middleware locator #4
Conversation
Based on the idea of the handlerLocator of Tactician this patch adds a middleware locator. To make this package more independend of the other packages of php-api-clients.
ec9f776
to
7f30d48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea 👍 Looks mostly good but I've made two comments about minor points
@@ -0,0 +1,31 @@ | |||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change this into <?php declare(strict_types=1);
in this file and the other files
@@ -17,6 +17,7 @@ | |||
}, | |||
"require-dev": { | |||
"api-clients/test-utilities": "^1.0", | |||
"container-interop/container-interop": "^1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be in require
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only required when using the ContainerLocator. Containers implementing this interface will always require it. So I think require-dev is sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah agree it is, but we might want to document it in the readme and add it to suggest notifying users when they install it in a project without one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where do you want me to push that docs? Will add a suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The readme would be fine (which could use more docs anyway tbh).
Added some basic docs should be enough to start with |
Awesome, thanks 👍 ! |
Cool! |
Just tagged |
Based on the idea of the handlerLocator of Tactician this patch adds
a middleware locator. To make this package more independend of the other packages
of php-api-clients.