protected function newSerializer(ResourceConfiguration $config)
    {
        return new JMSSerializer(
            SerializerBuilder::create()->build(),
            new SerializationContext,
            new JMSPropertyExcluder($config->getExcludedProperties())
        );
    }
protected function newSerializer(ResourceConfiguration $config)
    {
        return new JMSSerializer(
            SerializerBuilder::create()->build(),
            new SerializationContext,
            new JMSPropertyExcluder($config->getExcludedProperties())
        );
    }
protected function newSerializer ( ResourceConfiguration $ config ) { return new JMSSerializer ( SerializerBuilder :: create ( ) -> build ( ) , new SerializationContext , new JMSPropertyExcluder ( $ config -> getExcludedProperties ( ) ) ) ; }
Creates JMSSerializer instance.

@return JMSSerializer
Creates JMSSerializer instance .