Fixed default driver not found. (#1994)

This commit is contained in:
李铭昕 2020-06-27 05:35:18 +08:00 committed by GitHub
parent 9dc74e4525
commit d014e6aed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,9 @@
"cs-fix": "php-cs-fixer fix $1"
},
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
},
"hyperf": {
"config": "Hyperf\\Watcher\\ConfigProvider"
}

View File

@ -12,13 +12,14 @@ declare(strict_types=1);
namespace Hyperf\Watcher;
use Hyperf\Contract\ConfigInterface;
use Hyperf\Watcher\Driver\FswatchDriver;
class Option
{
/**
* @var string
*/
protected $driver = 'fswatch';
protected $driver = FswatchDriver::class;
/**
* @var string