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

Slim4 #49

Merged
merged 10 commits into from Sep 8, 2019
Merged

Slim4 #49

merged 10 commits into from Sep 8, 2019

Conversation

fritsvt
Copy link
Contributor

@fritsvt fritsvt commented Sep 8, 2019

Additions for the todo items in #47

@@ -118,7 +118,7 @@ public function injects_route_placeholder_over_request_attribute()
public function resolve_controller_from_container()
{
$app = Bridge::create();
$app->get('/', [UserController::class, 'dashboard']);
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the PR! This is a regression here, this shouldn't be changed.

This is because AppFactory::createFromContainer($container) doesn't work like the old method. AppFactory::setCallableResolver(new CallableResolver($callableResolver)); should be removed, and instead the callable resolver should be defined in the container.

Copy link
Contributor Author

@fritsvt fritsvt Sep 8, 2019

Choose a reason for hiding this comment

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

Thanks for pointing this out, I updated the PR.

@mnapoli
Copy link
Member

mnapoli commented Sep 8, 2019

Thanks a lot!

@mnapoli mnapoli merged commit cfdb93d into PHP-DI:master Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants