Skip to content

Commit

Permalink
feat: modify composer json
Browse files Browse the repository at this point in the history
  • Loading branch information
storyn26383 committed Oct 2, 2023
1 parent 24da35f commit 2a0bb4e
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 36 deletions.
110 changes: 82 additions & 28 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,28 @@
},
"autoload": {
"psr-4": {
"SwooleTW\\Hyperf\\": "src/"
}
"SwooleTW\\Hyperf\\Auth\\": "src/auth/src/",
"SwooleTW\\Hyperf\\Cache\\": "src/cache/src/",
"SwooleTW\\Hyperf\\Container\\": "src/container/src/",
"SwooleTW\\Hyperf\\Cookie\\": "src/cookie/src/",
"SwooleTW\\Hyperf\\Database\\": "src/sqlite/src/",
"SwooleTW\\Hyperf\\Dispatcher\\": "src/dispatcher/src/",
"SwooleTW\\Hyperf\\Encryption\\": "src/encryption/src/",
"SwooleTW\\Hyperf\\Foundation\\": "src/foundation/src/",
"SwooleTW\\Hyperf\\Hashing\\": "src/hashing/src/",
"SwooleTW\\Hyperf\\JWT\\": "src/jwt/src/",
"SwooleTW\\Hyperf\\Log\\": "src/log/src/",
"SwooleTW\\Hyperf\\ObjectPool\\": "src/object-pool/src/",
"SwooleTW\\Hyperf\\Router\\": "src/router/src/",
"SwooleTW\\Hyperf\\Support\\": "src/support/src/"
},
"files": [
"src/auth/src/Functions.php",
"src/cache/src/Functions.php",
"src/foundation/src/helpers.php",
"src/router/src/Functions.php",
"src/support/src/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
Expand All @@ -32,48 +52,82 @@
},
"require": {
"php": "^8.1",
"ext-hash": "*",
"ext-mbstring": "*",
"ext-openssl": "*",
"hyperf/async-queue": "^3.1",
"hyperf/collection": "^3.1",
"hyperf/command": "^3.1",
"hyperf/config": "^3.1",
"hyperf/context": "^3.1",
"hyperf/contract": "^3.1",
"hyperf/coordinator": "^3.1",
"hyperf/coroutine": "^3.1",
"hyperf/crontab": "^3.1",
"hyperf/database": "^3.1",
"hyperf/db-connection": "^3.1",
"hyperf/di": "^3.1",
"hyperf/redis": "^3.1",
"swooletw/hyperf-auth": "@dev",
"swooletw/hyperf-cache": "@dev",
"swooletw/hyperf-container": "@dev",
"swooletw/hyperf-cookie": "@dev",
"swooletw/hyperf-dispatcher": "@dev",
"swooletw/hyperf-encryption": "@dev",
"swooletw/hyperf-foundation": "@dev",
"swooletw/hyperf-hashing": "@dev",
"swooletw/hyperf-jwt": "@dev",
"swooletw/hyperf-log": "@dev",
"swooletw/hyperf-object-pool": "@dev",
"swooletw/hyperf-router": "@dev",
"swooletw/hyperf-sqlite": "@dev",
"swooletw/hyperf-support": "@dev"
"hyperf/engine": "^2.1",
"hyperf/http-message": "^3.1",
"hyperf/http-server": "^3.1",
"hyperf/macroable": "^3.1",
"hyperf/signal": "^3.1",
"hyperf/stringable": "^3.1",
"hyperf/support": "^3.1",
"hyperf/tappable": "^3.1",
"lcobucci/jwt": "^5.0",
"monolog/monolog": "^3.1",
"nesbot/carbon": "^2.16",
"psr/simple-cache": "^3.0",
"ramsey/uuid": "^4.7"
},
"replace": {
"swooletw/hyperf-auth": "self.version",
"swooletw/hyperf-cache": "self.version",
"swooletw/hyperf-container": "self.version",
"swooletw/hyperf-cookie": "self.version",
"swooletw/hyperf-dispatcher": "self.version",
"swooletw/hyperf-encryption": "self.version",
"swooletw/hyperf-foundation": "self.version",
"swooletw/hyperf-hashing": "self.version",
"swooletw/hyperf-jwt": "self.version",
"swooletw/hyperf-log": "self.version",
"swooletw/hyperf-object-pool": "self.version",
"swooletw/hyperf-router": "self.version",
"swooletw/hyperf-sqlite": "self.version",
"swooletw/hyperf-support": "self.version"
},
"suggest": {
"doctrine/dbal": "Required to rename SQLite indexs (^3.5.1)."
"doctrine/dbal": "Required to rename SQLite indexs (^3.5.1).",
"hyperf/redis": "Required to use redis driver. (^3.1)",
"hyperf/session": "Required to use session guard. (^3.1)"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "dev-master",
"hyperf/redis": "^3.1",
"mockery/mockery": "^1.5.1",
"phpunit/phpunit": "^10.0.7"
},
"config": {
"sort-packages": true
},
"extra": {
"hyperf": [
"SwooleTW\\Hyperf\\Auth\\ConfigProvider",
"SwooleTW\\Hyperf\\Cache\\ConfigProvider",
"SwooleTW\\Hyperf\\Cookie\\ConfigProvider",
"SwooleTW\\Hyperf\\Database\\ConfigProvider",
"SwooleTW\\Hyperf\\Dispatcher\\ConfigProvider",
"SwooleTW\\Hyperf\\Encryption\\ConfigProvider",
"SwooleTW\\Hyperf\\Foundation\\ConfigProvider",
"SwooleTW\\Hyperf\\Hashing\\ConfigProvider",
"SwooleTW\\Hyperf\\JWT\\ConfigProvider",
"SwooleTW\\Hyperf\\Log\\ConfigProvider",
"SwooleTW\\Hyperf\\Router\\ConfigProvider"
],
"branch-alias": {
"dev-main": "3.1-dev"
}
},
"minimum-stability": "dev",
"repositories": [
{
"type": "path",
"url": "src/*",
"options": {
"symlink": true
}
}
]
"minimum-stability": "dev"
}
8 changes: 4 additions & 4 deletions src/auth/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"hyperf/config": "^3.1",
"hyperf/database": "^3.1",
"hyperf/http-server": "^3.1",
"swooletw/hyperf-hashing": "^3.1|dev-master",
"swooletw/hyperf-jwt": "^3.1|dev-master"
"swooletw/hyperf-hashing": "^3.1",
"swooletw/hyperf-jwt": "^3.1"
},
"suggest": {
"hyperf/session": "Required to use session guard."
"hyperf/session": "Required to use session guard. (^3.1)"
},
"autoload": {
"psr-4": {
Expand All @@ -56,4 +56,4 @@
"sort-packages": true
},
"minimum-stability": "dev"
}
}
9 changes: 6 additions & 3 deletions src/cache/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
"hyperf/support": "^3.1",
"psr/simple-cache": "^3.0"
},
"suggests": {
"hyperf/redis": "Required to use redis driver. (^2.0)"
"require-dev": {
"hyperf/redis": "^3.1"
},
"suggest": {
"hyperf/redis": "Required to use redis driver. (^3.1)"
},
"config": {
"sort-packages": true
Expand All @@ -48,4 +51,4 @@
"dev-main": "3.1-dev"
}
}
}
}
2 changes: 1 addition & 1 deletion src/jwt/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"psr/simple-cache": "^3.0",
"hyperf/stringable": "^3.1",
"ramsey/uuid": "^4.7",
"swooletw/hyperf-cache": "^3.1|dev-master"
"swooletw/hyperf-cache": "^3.1"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 2a0bb4e

Please sign in to comment.