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
Slim 4 support #22
Comments
Hi @SergeAx, thanks for the kind words! Supporting Slim 4 is definitely planned, thanks for getting the work started. Your branch looks fine, however the problem with that test is, I believe, that the Maybe Slim 4 changed how callable are resolved? |
If you check Travis log you'll see the error is in $routeResponse = $handler($callable, $request, $response, $this->arguments);
The only explanation I have is that PHP is trying to cast |
Sorry for posting too soon. You were right: |
Nice thanks! |
Here is more information for Slim 4, they are planning to remove completely their container: slimphp/Slim#2290 (comment) |
The PR has been merged, it seems that one course of action in this bridge would be to let PHP-DI create the Slim Application class. I haven't studied the details to see if it's the best yet. |
Hey all, any news on the Slim 4 compatibility? Thanks! |
Bump, would also like to know if this is still happening. |
Given the discussion at slimphp/Slim#2770 yes I think there would be value in writing a bridge that ports the current features. I have no ETA at the moment, but I use both projects quite often so once I get my hands on Slim 4 I may get started. |
Looks like https://github.com/slimphp/Slim-Skeleton for Slim 4 incorporated PHP-DI as a ЗЫК-compatible component, so we basically don't need slim-bridge for it anymore, right? |
You might want it if you want to keep some features, for example auto-injecting services and parameters in controller parameters. |
Current progress: #47 |
Hello! Thank you for great project, I'm using it extensively and having a lot of fun an delight with all theese autowirings and nice config)
There is work in progress for Slim 4 for more than half a year:
https://github.com/slimphp/Slim/tree/4.x
Slim is going to keep it's honor of most interchangeble framework in PHP universe. PHP-DI\Slim-Bridge should definitely support new version, so I forked this repo and started to hack something together:
https://github.com/SergeAx/Slim-Bridge/tree/dev-4x
Alas. I stumbled upon nasty error about 'calling non-static method statically':
https://travis-ci.org/SergeAx/Slim-Bridge/jobs/256378905
Maybe someone here more familiar with PHP-DI and Slim-Bridge can easily point out an error?
The text was updated successfully, but these errors were encountered: