public static function createSerializer()
    {
        $normalizers = array(
            new AccountNormalizer(),
            new ActorNormalizer(),
            new AttachmentNormalizer(),
            new ContextNormalizer(),
            new ContextActivitiesNormalizer(),
            new DefinitionNormalizer(),
            new DocumentDataNormalizer(),
            new ExtensionsNormalizer(),
            new InteractionComponentNormalizer(),
            new LanguageMapNormalizer(),
            new ObjectNormalizer(),
            new ResultNormalizer(),
            new StatementNormalizer(),
            new StatementResultNormalizer(),
            new TimestampNormalizer(),
            new VerbNormalizer(),
            new ArrayDenormalizer(),
            new FilterNullValueNormalizer(new PropertyNormalizer()),
            new PropertyNormalizer(),
        );
        $encoders = array(
            new JsonEncoder(),
        );

        return new SymfonySerializer($normalizers, $encoders);
    }
public static function createSerializer()
    {
        $normalizers = array(
            new AccountNormalizer(),
            new ActorNormalizer(),
            new AttachmentNormalizer(),
            new ContextNormalizer(),
            new ContextActivitiesNormalizer(),
            new DefinitionNormalizer(),
            new DocumentDataNormalizer(),
            new ExtensionsNormalizer(),
            new InteractionComponentNormalizer(),
            new LanguageMapNormalizer(),
            new ObjectNormalizer(),
            new ResultNormalizer(),
            new StatementNormalizer(),
            new StatementResultNormalizer(),
            new TimestampNormalizer(),
            new VerbNormalizer(),
            new ArrayDenormalizer(),
            new FilterNullValueNormalizer(new PropertyNormalizer()),
            new PropertyNormalizer(),
        );
        $encoders = array(
            new JsonEncoder(),
        );

        return new SymfonySerializer($normalizers, $encoders);
    }
public static function createSerializer ( ) { $ normalizers = array ( new AccountNormalizer ( ) , new ActorNormalizer ( ) , new AttachmentNormalizer ( ) , new ContextNormalizer ( ) , new ContextActivitiesNormalizer ( ) , new DefinitionNormalizer ( ) , new DocumentDataNormalizer ( ) , new ExtensionsNormalizer ( ) , new InteractionComponentNormalizer ( ) , new LanguageMapNormalizer ( ) , new ObjectNormalizer ( ) , new ResultNormalizer ( ) , new StatementNormalizer ( ) , new StatementResultNormalizer ( ) , new TimestampNormalizer ( ) , new VerbNormalizer ( ) , new ArrayDenormalizer ( ) , new FilterNullValueNormalizer ( new PropertyNormalizer ( ) ) , new PropertyNormalizer ( ) , ) ; $ encoders = array ( new JsonEncoder ( ) , ) ; return new SymfonySerializer ( $ normalizers , $ encoders ) ; }
Creates a new Serializer.

@return SerializerInterface The Serializer
Creates a new Serializer .