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
Slim4 #49
Conversation
@@ -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']); |
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.
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.
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.
Thanks for pointing this out, I updated the PR.
Thanks a lot! |
Additions for the todo items in #47