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

Class 'Slim\\Middleware' not found #109

Open
userator opened this issue Jul 26, 2019 · 0 comments
Open

Class 'Slim\\Middleware' not found #109

userator opened this issue Jul 26, 2019 · 0 comments

Comments

@userator
Copy link

Use in composer. json

"slim/slim": "~3.12.0",
"slim/extras": "~2.0.0",

catch error

PHP Fatal error:  Class 'Slim\\Middleware' not found in /opt/slim-app/vendor/slim/extras/Slim/Extras/Middleware/HttpBasicAuth.php on line 40
PHP Stack trace:
PHP   1. {main}() /opt/slim-app/public/index.php:0
PHP   2. require() /opt/slim-app/public/index.php:29
PHP   3. spl_autoload_call() /opt/slim-app/configs/middlewares.php:3
PHP   4. Composer\\Autoload\\ClassLoader->loadClass() /opt/slim-app/configs/middlewares.php:3
PHP   5. Composer\\Autoload\\includeFile() /opt/slim-app/vendor/composer/ClassLoader.php:322
PHP   6. include() /opt/slim-app/vendor/composer/ClassLoader.php:444

Possibly add missing dependency or restriction to package slim/extras in composer.json

@userator userator closed this as completed Aug 1, 2019
@userator userator reopened this Aug 1, 2019
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

1 participant