protected function setSerializationVisitors(Container $app, SerializerBuilder $serializerBuilder)
    {
        $serializerBuilder->addDefaultSerializationVisitors();

        foreach ($app["serializer.serializationVisitors"] as $format => $visitor) {
            $serializerBuilder->setSerializationVisitor($format, $visitor);
        }
    }
protected function setSerializationVisitors(Container $app, SerializerBuilder $serializerBuilder)
    {
        $serializerBuilder->addDefaultSerializationVisitors();

        foreach ($app["serializer.serializationVisitors"] as $format => $visitor) {
            $serializerBuilder->setSerializationVisitor($format, $visitor);
        }
    }
protected function setSerializationVisitors ( Container $ app , SerializerBuilder $ serializerBuilder ) { $ serializerBuilder -> addDefaultSerializationVisitors ( ) ; foreach ( $ app [ "serializer.serializationVisitors" ] as $ format => $ visitor ) { $ serializerBuilder -> setSerializationVisitor ( $ format , $ visitor ) ; } }
Override default serialization vistors

@param Container $app
@param SerializerBuilder $serializerBuilder
Override default serialization vistors