Adjust composer.json for scout. (#2606)

* Adjust composer.json for scout.

* Update composer.json
This commit is contained in:
李铭昕 2020-10-02 11:26:35 +08:00 committed by GitHub
parent f3690648b4
commit 68ae3c38bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,23 @@
"hyperf"
],
"description": "Hyperf Scout provides a driver based solution to searching your Eloquent models. Inspired By Laravel Scout.",
"require": {
"php": ">=7.2",
"ext-swoole": ">=4.4",
"hyperf/command": "~2.0.0",
"hyperf/contract": "~2.0.0",
"hyperf/database": "~2.0.0",
"hyperf/event": "~2.0.0",
"hyperf/model-listener": "~2.0.0",
"hyperf/utils": "~2.0.0",
"psr/event-dispatcher": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14"
},
"suggest": {
"hyperf/elasticsearch": "Required to use elasticsearch driver."
},
"autoload": {
"psr-4": {
"Hyperf\\Scout\\": "src/"
@ -17,34 +34,20 @@
"HyperfTest\\Scout\\": "tests/"
}
},
"require": {
"php": ">=7.2",
"ext-swoole": ">=4.4",
"psr/event-dispatcher": "^1.0",
"hyperf/contract": "~2.0.0",
"hyperf/utils": "~2.0.0",
"hyperf/database": "~2.0.0",
"hyperf/model-listener": "~2.0.0",
"hyperf/event": "~2.0.0",
"hyperf/command": "~2.0.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14"
},
"suggest": {
"hyperf/elasticsearch": "Required to use elasticsearch driver."
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
},
"hyperf": {
"config": "Hyperf\\Scout\\ConfigProvider"
}
},
"scripts": {
"test": "co-phpunit -c phpunit.xml --colors=always",
"analyze": "phpstan analyse --memory-limit 300M -l 0 ./src",
"cs-fix": "php-cs-fixer fix $1"
},
"extra": {
"hyperf": {
"config": "Hyperf\\Scout\\ConfigProvider"
}
}
}