public function configureSerializerExtension(JMSSerializerExtension $ext) { $ext->addHandlerFactory(new ArticleAuthorHandlerFactory()); $ext->addHandlerFactory(new ArticleCommentsLinkHandlerFactory()); $ext->addHandlerFactory(new AuthorImageUriHandlerFactory()); $ext->addHandlerFactory(new PackageItemsLinkHandlerFactory()); $ext->addHandlerFactory(new ItemLinkHandlerFactory()); $ext->addHandlerFactory(new TopicArticlesLinkHandlerFactory()); $ext->addHandlerFactory(new ArticleFieldsHandlerFactory()); $ext->addHandlerFactory(new ArticleTranslationsHandlerFactory()); $ext->addHandlerFactory(new ArticleRenditionsHandlerFactory()); }
public function configureSerializerExtension(JMSSerializerExtension $ext) { $ext->addHandlerFactory(new ObjectBasedFactory()); $ext->addHandlerFactory(new DoctrineProxyFactory()); $ext->addHandlerFactory(new ArrayCollectionFactory()); $ext->addHandlerFactory(new ConstraintViolationFactory()); $ext->addHandlerFactory(new DateTimeFactory()); $ext->addHandlerFactory(new FormErrorFactory()); }