-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Allow autowiring serializer #568
Conversation
Hi, thanks for the PR. What about adding an alias also for Can you add some tests? |
Good catch. Added |
@@ -223,6 +223,8 @@ public function testLoad() | |||
$versionedObject = new VersionedObject('foo', 'bar'); | |||
$serializer = $container->get('serializer'); | |||
|
|||
$this->assertTrue($container-has('JMS\Serializer\SerializerInterface'), 'Alias should be defined to allow autowiring'); |
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.
->
instead of -
tests failed because of #568 (comment) |
Fixed |
thanks |
To get rid of
See symfony/symfony#22295 and symfony/symfony#22098