Skip to content
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

Switch to a modern directory structure #426

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

greg0ire
Copy link
Member

Here are the steps I followed:

  • mkdir src
  • git mv *.php src
  • git mv Command/ DependencyInjection Loader Purger src
  • adjust autoloading path
  • overrode Bunde::getPath()
  • git mv Resources/doc/ docs
  • git mv Resources/config/ config
  • git mv Tests/ tests

Here are the steps I followed:

- `mkdir src`
- `git mv *.php src`
- `git mv Command/ DependencyInjection Loader Purger src`
- adjust autoloading path
- overrode `Bunde::getPath()`
- `git mv Resources/doc/ docs`
- `git mv Resources/config/ config`
- `git mv Tests/ tests`
"psr-4": { "Doctrine\\Bundle\\FixturesBundle\\": "src" }
},
"autoload-dev": {
"psr-4": { "Doctrine\\Bundle\\FixturesBundle\\Tests\\": "tests" }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is technically a breaking change, because Tests is no longer autoloadable by users of this bundle. Looking at the files in there though, there does not seem to be any code that should be.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests-directory shouldn't even be considered as usable outside of the bundle itself.

@greg0ire greg0ire merged commit 838207b into doctrine:3.6.x Apr 1, 2024
13 checks passed
@greg0ire greg0ire deleted the modern-directory-structure branch April 1, 2024 21:27
@greg0ire greg0ire added this to the 3.6.0 milestone Apr 1, 2024
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