src/Transformer/Factory.php
public function register($class, $resolver, array $parameters = [], Closure $after = null)
    {
        return $this->bindings[$class] = $this->createBinding($resolver, $parameters, $after);
    }
public function register($class, $resolver, array $parameters = [], Closure $after = null)
    {
        return $this->bindings[$class] = $this->createBinding($resolver, $parameters, $after);
    }
public function register ( $ class , $ resolver , array $ parameters = [ ] , Closure $ after = null ) { return $ this -> bindings [ $ class ] = $ this -> createBinding ( $ resolver , $ parameters , $ after ) ; }
Register a transformer binding resolver for a class.

@param               $class
@param               $resolver
@param array         $parameters
@param \Closure|null $after

@return \Dingo\Api\Transformer\Binding
Register a transformer binding resolver for a class .