src/Graviton/ProxyBundle/Service/TransformationHandler.php
public function addRequestTransformation($api, $endpoint, RequestTransformationInterface $transformation)
    {
        $this->requestTransformations[$api][$endpoint][] = $transformation;
        return count($this->requestTransformations[$api][$endpoint]) - 1;
    }
public function addRequestTransformation($api, $endpoint, RequestTransformationInterface $transformation)
    {
        $this->requestTransformations[$api][$endpoint][] = $transformation;
        return count($this->requestTransformations[$api][$endpoint]) - 1;
    }
public function addRequestTransformation ( $ api , $ endpoint , RequestTransformationInterface $ transformation ) { $ this -> requestTransformations [ $ api ] [ $ endpoint ] [ ] = $ transformation ; return count ( $ this -> requestTransformations [ $ api ] [ $ endpoint ] ) - 1 ; }
Adds a transformation to a given API and endpoint.

@param  string                         $api            The API name
@param  string                         $endpoint       The API endpoint
@param  RequestTransformationInterface $transformation The transformation
@return int The position of the added transformation within the transformation array.
Adds a transformation to a given API and endpoint .