src/Graviton/ProxyBundle/Service/TransformationHandler.php
public function transformSchema($api, $endpoint, \stdClass $schemaIn, \stdClass $schemaOut)
    {
        $transformations = $this->getSchemaTransformations($api, $endpoint);
        foreach ($transformations as $transformation) {
            $transformedSchema = $transformation->transformSchema($schemaIn, $schemaOut);
            $schemaOut = $transformedSchema instanceof \stdClass ? $transformedSchema : $schemaOut;
        }
        return $schemaOut;
    }
public function transformSchema($api, $endpoint, \stdClass $schemaIn, \stdClass $schemaOut)
    {
        $transformations = $this->getSchemaTransformations($api, $endpoint);
        foreach ($transformations as $transformation) {
            $transformedSchema = $transformation->transformSchema($schemaIn, $schemaOut);
            $schemaOut = $transformedSchema instanceof \stdClass ? $transformedSchema : $schemaOut;
        }
        return $schemaOut;
    }
public function transformSchema ( $ api , $ endpoint , \ stdClass $ schemaIn , \ stdClass $ schemaOut ) { $ transformations = $ this -> getSchemaTransformations ( $ api , $ endpoint ) ; foreach ( $ transformations as $ transformation ) { $ transformedSchema = $ transformation -> transformSchema ( $ schemaIn , $ schemaOut ) ; $ schemaOut = $ transformedSchema instanceof \ stdClass ? $ transformedSchema : $ schemaOut ; } return $ schemaOut ; }
Applies all transformations defined for the given API and endpoint on a schema.

@param  string    $api       The API name
@param  string    $endpoint  The endpoint
@param  \stdClass $schemaIn  The original schema object
@param  \stdClass $schemaOut The schema object to use for transformations
@return \stdClass The transformed schema
Applies all transformations defined for the given API and endpoint on a schema .