Skip to content
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

Add foundHandler that implements a new InvocationStrategyInterface #1345

Merged
merged 1 commit into from
Jul 9, 2015

Conversation

opengeek
Copy link
Contributor

@opengeek opengeek commented Jul 9, 2015

This will allow a foundHandler in the container to describe what parameters are injected into the callable defined for a found route.

This will allow a foundHandler in the container to describe what parameters are injected into the callable defined for a found route.
codeguy added a commit that referenced this pull request Jul 9, 2015
Add foundHandler that implements a new InvocationStrategyInterface
@codeguy codeguy merged commit 66afb55 into slimphp:3.x Jul 9, 2015
*
* @return mixed
*/
public function invoke(ContainerInterface $container, array $route, ServerRequestInterface $request, ResponseInterface $response);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not the magic __invoke() method? This custom invoke() might be confusing.

And why is the container a parameter here? If it is needed for a strategy it can be inserted in the constructor.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both suggestions make good sense to me. I'll create another PR unless anyone else sees a problem.

@akrabat akrabat added this to the 3.0.0 Beta 2 milestone Aug 2, 2015
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.

4 participants