swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.58k stars 788 forks source link

AnnotationException without install swoft/http-server when I run swoft command #1099

Closed maxsky closed 4 years ago

maxsky commented 4 years ago
Q A
Bug report? yes
Feature request? no
Swoft version 2.0.6
Swoole version 4.4.8
PHP version 7.1.33
Runtime environment WSL Ubuntu

Describe the bug AnnotationException without install swoft/http-server

Expected behavior Just remove swoft/http-server then run php ./bin/swoft -h

Screenshots TIM20191114171358

Details

This exception with swoft/devtool component. Its about files in swoft/devtool/src/Http/Controller and swoft/devtool/src/Http/Middleware. Because these files used annotation from swoft/http-server. When I remove these files that the command php ./bin/swoft -h will be ok.

inhere commented 4 years ago

Now, the devtool must require http-server :)