Commit f446653
committed
feature #228 New directory structure (ajgarlag)
This PR was squashed before being merged into the 1.x-dev branch.
Discussion
----------
New directory structure
I think we can adopt the recommended bundle directory structure before tagging v1.0.
All we have to do is move the `./src/Resources/config` directory to `./config`.
I see only one caveat to this: route loading. So I've included two files that will trigger a deprecation if you load them:
- `./Resources/config/routes.php` will trigger a deprecation if you load the routes using the ``@LeagueOAuth2ServerBundle`/Resources/config/routes.php` notation recommended in the installation doc.
- `./src/Resources/config/routes.php` will trigger a deprecation if you load the routes with a reference to the old file location in the file system.
We will need to update the [Flex recipe](https://github.com/symfony/recipes-contrib/blob/main/league/oauth2-server-bundle/0.3/config/routes/league_oauth2.yaml) when this PR is merged.
Commits
-------
c815d17 New directory structureFile tree
14 files changed
+36
-15
lines changed- Resources/config
- config
- access_token
- storage
- docs
- src
- DependencyInjection
- Resources/config
- tests/Fixtures
14 files changed
+36
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
0 commit comments