Fix deprecations and ensure compatibility with Symfony 6.4 (#420) for…
Fix deprecations and ensure compatibility with Symfony 6.4 (#420)
-
Updated
SymfonyFixturesLoaderto conditionally set the container:- Added a
class_existscheck forContainerAwareInterfacein theaddFixturemethod. - Passed
boolandContainerInterfaceto the constructor ofSymfonyFixturesLoader.
- Added a
-
Updated
DoctrineFixturesExtensionfor future compatibility:- Added
?ConfigurationInterfacereturn type togetConfigurationmethod. - Replaced
HttpKernelExtensionwithSymfony\Component\DependencyInjection\Extension\Extension.
- Added
-
Fixed tests to correctly initialize
SymfonyFixturesLoader:- Updated
LoadDataFixturesDoctrineCommandTestto pass correct parameters toSymfonyFixturesLoader.
- Updated
-
Implemented
isUninitializedObjectmethod inEntityManagerDecoratorfor future Doctrine compatibility.
These changes address deprecation warnings and ensure compatibility with Symfony 6.4 and future versions.
bump 🤜
It seems there are CI jobs failing. Please take a look at this guide for more on how to handle those.
@joscraw any chance you can update this to fix the failing jobs?
@craigh Hey guys! Sorry, I was out for a bit. Yup I'm on it! I'll take care of it here in a few min.
Thank you! When do you think it will be merged?
I am reviewing the depreciations (LTS symfony 6.4) and I can see the depreciation is coming from just the doctrine fixtures without any other custom code. Can not find any other workaround.
Can not find any other workaround.
Does that fix the deprecations for you?
"doctrine/doctrine-fixtures-bundle": "^4@dev"
Yes it does, but for the minimum-stablity
the minimum-stablity
That's fixable on our side. 🙉
@greg0ire @SenseException Shall we release 4.0?
@derrabus Releasing the 4.0.x branch instead def makes more sense to me! Thanks guys!