hyperf / watcher

[READ ONLY]
18 stars 11 forks source link

ScanFileDriver 无法使用 #5

Closed sevendiscovery closed 4 years ago

sevendiscovery commented 4 years ago

composer require hyperf/watcher --dev 安装下来的2.0.1 没有 ScanFileDriver 驱动

limingxinleo commented 4 years ago

composer require "hyperf/watcher:2.0.x-dev" --dev

manyoubaby123 commented 4 years ago

image 驱动:ScanFileDriver,依赖注入没问题,注解注入会报错 [ERROR] Call to a member function getMethod() on null[20] in /hyperf-skeleton/ap p/Controller/IndexController.php [ERROR] #0 /hyperf-skeleton/vendor/hyperf/http-server/src/CoreMiddleware.php(160 ): App\Controller\IndexController->index()

1 /hyperf-skeleton/vendor/hyperf/http-server/src/CoreMiddleware.php(112): Hyper

f\HttpServer\CoreMiddleware->handleFound(Object(Hyperf\HttpServer\Router\Dispatc hed), Object(Hyperf\HttpMessage\Server\Request))

2 /hyperf-skeleton/vendor/hyperf/dispatcher/src/AbstractRequestHandler.php(65):

Hyperf\HttpServer\CoreMiddleware->process(Object(Hyperf\HttpMessage\Server\Requ est), Object(Hyperf\Dispatcher\HttpRequestHandler))

3 /hyperf-skeleton/vendor/hyperf/dispatcher/src/HttpRequestHandler.php(26): Hyp

erf\Dispatcher\AbstractRequestHandler->handleRequest(Object(Hyperf\HttpMessage\S erver\Request))

limingxinleo commented 4 years ago

composer dump-autoload -o