Skip to content

New directory structure #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2025

Conversation

ajgarlag
Copy link
Contributor

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 when this PR is merged.

@ajgarlag
Copy link
Contributor Author

Failing test looks a transient error

@chalasr
Copy link
Member

chalasr commented Mar 30, 2025

👍 Thanks. Can you please open the recipe PR?

@chalasr chalasr force-pushed the new-directory-structure branch from 8073beb to c815d17 Compare March 30, 2025 18:35
@chalasr
Copy link
Member

chalasr commented Mar 30, 2025

Thank you Antonio.

@chalasr chalasr merged commit f446653 into thephpleague:master Mar 30, 2025
23 checks passed
@ajgarlag
Copy link
Contributor Author

👍 Thanks. Can you please open the recipe PR?

I will open it as soon as possible. I assume you will tag a v0.11 version before v1.0.

@chalasr
Copy link
Member

chalasr commented Mar 31, 2025

Not necessarily, I think the next version will be 1.0 no matter what's inside :) I mean it's not an issue if 1.1 comes quickly.

@ajgarlag
Copy link
Contributor Author

But this PR introduces two deprecations. If we are going to publish them in v1.0, I thought we should wait until v2.0 to remove them.

Another option would be to remove the deprecations and add an UPGRADE.md file for v1.0.

@chalasr
Copy link
Member

chalasr commented Mar 31, 2025

Good point, I'll release 1.0 right after 0.11 (same minus BC layers)

@ajgarlag
Copy link
Contributor Author

Recipe PR: symfony/recipes-contrib#1770

@ajgarlag ajgarlag deleted the new-directory-structure branch March 31, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants