示例#1
0
 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());
 }
示例#2
0
 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());
 }