-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Deprecate Sonata\Doctrine\Bridge\Symfony\Bundle\SonataDoctrineBundle
#205
Conversation
composer.json
in order to be compatible with Symfony FlexSonata\Doctrine\Bridge\Symfony\Bundle\SonataDoctrineBundle
Since the change related to Flex is not working, I removed it in order to just leave the deprecation for |
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.
is the Sonata\Doctrine\Bridge\Symfony\SonataDoctrineBundle
file missing? Maybe also adding an upgrade note?
Yes, I just added the missing file. Thank you!
The upgrade note was already added. |
public function getPath() | ||
{ | ||
return __DIR__.'/..'; | ||
} |
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.
Since config files are now in the same directory, I guess this is not needed or at least it should be changed to just __DIR__
.
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.
You're totally right. Removed.
|
||
protected function getContainerExtensionClass() | ||
{ | ||
return SonataDoctrineExtension::class; |
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.
Why is this needed, Symfony cant get this class name right? maybe it was because the old structure and now it works, can you try?
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.
It's working. Thanks.
Thank you @phansys |
@phansys Should we do the same with https://github.com/sonata-project/exporter/blob/2.x/src/Bridge/Symfony/Bundle/SonataExporterBundle.php ? |
Yes, I guess. I'll do the change today or tomorrow. |
Subject
Deprecated
Sonata\Doctrine\Bridge\Symfony\Bundle\SonataDoctrineBundle
.I am targeting this branch, because this change respects BC.
Triggered by sonata-project/SonataAdminBundle#6173.
Changelog