Skip to content

Commit bdfa6d9

Browse files
committed
Move doctrine packages to suggest section
1 parent 6f34b4e commit bdfa6d9

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ Replacement of trikoder/oauth2-bundle made in coordination with [trikoder](https
1717
composer require league/oauth2-server-bundle
1818
```
1919

20+
2. Require Doctrine to use it as persistence layer:
21+
22+
```sh
23+
composer require doctrine/doctrine-bundle doctrine/orm
24+
```
25+
2026
## Documentation
2127

2228
The docs [can be found in the `docs/` directory](docs/index.md) of this repository.

composer.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
"require": {
1919
"php": "^8.1",
2020
"ext-openssl": "*",
21-
"doctrine/doctrine-bundle": "^2.8.0",
22-
"doctrine/orm": "^2.14|^3.0",
2321
"league/oauth2-server": "^9.2",
2422
"nyholm/psr7": "^1.4",
2523
"psr/http-factory": "^1.0",
@@ -34,9 +32,19 @@
3432
"require-dev": {
3533
"ext-pdo": "*",
3634
"ext-pdo_sqlite": "*",
35+
"doctrine/doctrine-bundle": "^2.8.0",
36+
"doctrine/orm": "^2.14|^3.0",
3737
"symfony/browser-kit": "^6.4|^7.0",
3838
"symfony/phpunit-bridge": "^7.2"
3939
},
40+
"conflict": {
41+
"doctrine/doctrine-bundle": "<2.8.0",
42+
"doctrine/orm": "<2.14"
43+
},
44+
"suggest": {
45+
"doctrine/doctrine-bundle": "Allow usage of doctrine as persistence layer",
46+
"doctrine/orm": "Allow usage of doctrine as persistence layer"
47+
},
4048
"autoload": {
4149
"psr-4": { "League\\Bundle\\OAuth2ServerBundle\\": "src/" }
4250
},

0 commit comments

Comments
 (0)