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

Adding to Slim Framework #9

Closed
fastsol opened this issue Sep 9, 2018 · 1 comment
Closed

Adding to Slim Framework #9

fastsol opened this issue Sep 9, 2018 · 1 comment

Comments

@fastsol
Copy link

fastsol commented Sep 9, 2018

How do I add this into a Slim3 app. It tried this $app->add(new Middlewares\Debugbar()); but got this error: Fatal error: Uncaught RuntimeException: {} is not resolvable in D:\checkinslim\vendor\slim\slim\Slim\CallableResolver.php on line 104

@oscarotero
Copy link
Member

Slim v3 uses an old spec of middlewares.
You can use this package: https://github.com/oscarotero/psr7-middlewares or wait for slim v4 which support psr-15 middlewares

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

No branches or pull requests

2 participants