src/Transformers/TransformerResolver.php
public function resolveFromData($data)
    {
        $transformer = $this->resolveTransformer($this->resolveTransformableItem($data));

        return $this->resolve($transformer);
    }
public function resolveFromData($data)
    {
        $transformer = $this->resolveTransformer($this->resolveTransformableItem($data));

        return $this->resolve($transformer);
    }
Resolve a transformer from the given data.

@param  mixed $data
@return \Flugg\Responder\Transformers\Transformer|callable