Closed nielsnl68 closed 4 years ago
The strange thing is that the jerfeson/slim4-skeleton
puts the request and response object into the IoC container. See here. For me it looks like the jerfeson/slim4-skeleton
doesn't use the request object correctly, because the request/response object is context specific and doesn't belong into the container. At the end the routing information are not available there.
This line also doesn't match with the parameter list of resolveRoute
.
return $app->resolveRoute('Welcome', 'index', $args, '\App\Controllers');
I think this is not a Slim, but more a jerfeson/slim4-skeleton
specific issue. Maybe create an issue here.
Hello, I have the same issue as in issue #2831.
As suggested i added the addRoutingMiddleware middleware just before $app->run() but sadly i still get the same error message. Using the skeleton from jerfeson i have the following route:
And in the 'Welcome' controller class i have this: