-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Update doc for dependencies injection and Symfony 7 #559
base: 3.3.x
Are you sure you want to change the base?
Conversation
Resources/doc/index.rst
Outdated
The interface ``Symfony\Component\DependencyInjection\ContainerAwareInterface`` has been deprecated in Symfony 6.4 and | ||
removed in 7.0. If you use this version or newer, there is currently no way to inject dependencies in migrations. |
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.
I might be nit-picking here, but there has never been a way to inject dependencies into migrations. It was the service container that was injected.
Updated according to Derrabus review |
.. caution:: | ||
|
||
The interface ``Symfony\Component\DependencyInjection\ContainerAwareInterface`` has been deprecated in Symfony 6.4 and | ||
removed in 7.0. If you use this version or newer, there is currently no way to inject service container in migrations. |
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.
removed in 7.0. If you use this version or newer, there is currently no way to inject service container in migrations. | |
removed in 7.0. If you use this version or newer, there is currently no way to inject the service container into migrations. |
Related to #521
Update doc to mention this interface is no longer available starting from SF 7+
Considering this bundle can be used with older versions I think this isn't necessary to remove this part as it can be useful for some projects