-
-
Notifications
You must be signed in to change notification settings - Fork 72
Symfony 8 removed XmlFileLoader, changed to PhpFileLoader (2) #158
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
Conversation
20b4e68 to
bfe4ee7
Compare
|
@dunglas tests are green as requested; a merge & release would be highly appreciated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request migrates the bundle's service configuration from XML to PHP format to maintain compatibility with Symfony 8, which removed XmlFileLoader. Additionally, it adds conditional support for Doctrine ORM's enable_native_lazy_objects feature when running on PHP 8.4+ with Doctrine ORM 3.0+.
Key Changes:
- Replaced XML service definitions with PHP-based service configuration using the new Symfony DI format
- Added version detection logic to conditionally enable native lazy objects for PHP 8.4+ with Doctrine ORM 3.0+
- Added
composer/semveras a dev dependency to support version constraint checking
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/Bundle/Resources/config/services.xml |
Removed XML service configuration file (deprecated in Symfony 8) |
src/Bundle/Resources/config/services.php |
Added new PHP-based service configuration with equivalent service definitions |
src/Bundle/DependencyInjection/DunglasDoctrineJsonOdmExtension.php |
Updated to use PhpFileLoader instead of XmlFileLoader and load services.php instead of services.xml |
tests/Fixtures/AppKernel.php |
Added conditional configuration for enable_native_lazy_objects based on PHP and Doctrine ORM versions |
composer.json |
Added composer/semver ^3.4 to dev dependencies for version constraint checking |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Thank you |
|
@dunglas any chance this can get a release or are there any other issues that need to be resolved first? |
hijacking #156 from @iksmail (can't push to his main branch) in order to fix the test suite.
enables the
enable_native_lazy_objectsconfig value when php version >= 8.4.0 and doctrine/orm ^3.0