Skip to content
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

ServiceNotFoundException when integrating with JMSSerializerBundle #79

Closed
HelloGrayson opened this issue Jun 21, 2011 · 4 comments
Closed

Comments

@HelloGrayson
Copy link

After adding the JMSSerializerBundle from the fork prescribed in the README and adding the bundle to the AppKernel, a service not found exception is thrown for jms_serializer_extra.serializer_factory.

To reproduce:

  1. Run git submodule add https://github.com/lsmith77/SerializerBundle.git vendor/bundles/JMS/SerializerBundle,
  2. Add new JMS\SerializerBundle\JMSSerializerBundle() to app/AppKernel.php
  3. Get Exception below
ServiceNotFoundException: You have requested a non-existent service "jms_serializer_extra.serializer_factory"
@lsmith77
Copy link
Member

you need to use the https://github.com/lsmith77/SerializerBundle/tree/use_core branch.

@HelloGrayson
Copy link
Author

Nice. Is there anyway to hint to a git submodule to check out that branch? From a deploy standpoint I'm not sure I'll be able to manage the switching to that branch after checking out... Thanks

@lsmith77
Copy link
Member

Well in the Symfony Standard syntax you just need to specify a version:
https://github.com/symfony/symfony-standard/blob/master/deps#L12

For submodules all you have to do is check out the given branch and then commit the sha that is set.

@HelloGrayson
Copy link
Author

ok good deal. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants