-
-
Notifications
You must be signed in to change notification settings - Fork 921
Add a data persistence layer #1464
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
Add a data persistence layer #1464
Conversation
6977d8a
to
8103766
Compare
*/ | ||
public function supports($data): bool | ||
{ | ||
return (bool) $this->getManager($data); |
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.
Wouldn't null !== $this->getManager($data)
be less weird?
@@ -1,87 +0,0 @@ | |||
<?php |
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.
We cannot drop it right now (BC promise), this class must be deprecated instead.
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.
So should we also keep the definition of the tagged service and depreciate it?
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'm not sure about that because it's a public service so it will always be executed.
/** | ||
* Registers data persisters. | ||
* | ||
* @internal |
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.
We'll be able to drop this class when we'll upgrade to DI 3.4: http://symfony.com/blog/new-in-symfony-3-4-simpler-injection-of-tagged-services
6e4d207
to
8bba007
Compare
8bba007
to
c8f5c64
Compare
Done @dunglas |
Thanks @meyerbaptiste |
Don't forget the docs PR :D |
…ister Add a data persistence layer
Uh oh!
There was an error while loading. Please reload this page.