Skip to content

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

Merged
merged 5 commits into from
Jan 25, 2017

Conversation

jaapio
Copy link
Contributor

@jaapio jaapio commented Jan 25, 2017

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.

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.
@jaapio jaapio force-pushed the feature/middleware-locator branch from ec9f776 to 7f30d48 Compare January 25, 2017 15:47
Copy link
Member

@WyriHaximus WyriHaximus left a 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
Copy link
Member

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",
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

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).

@jaapio
Copy link
Contributor Author

jaapio commented Jan 25, 2017

Added some basic docs should be enough to start with

@WyriHaximus WyriHaximus merged commit 849488a into php-api-clients:master Jan 25, 2017
@WyriHaximus
Copy link
Member

Awesome, thanks 👍 !

@jaapio jaapio deleted the feature/middleware-locator branch January 25, 2017 20:36
@jaapio
Copy link
Contributor Author

jaapio commented Jan 25, 2017

Cool!

@WyriHaximus
Copy link
Member

Just tagged 1.1.0 with this PR :shipit:

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

Successfully merging this pull request may close these issues.

2 participants