public function resolve($name, $format, array $data, $method = 'compose')
    {
        $parser = $this->parse($name);
        $format = $format ?? $this->getPrefersFor($parser);

        return $parser->compose($format, $data, $method);
    }
public function resolve($name, $format, array $data, $method = 'compose')
    {
        $parser = $this->parse($name);
        $format = $format ?? $this->getPrefersFor($parser);

        return $parser->compose($format, $data, $method);
    }
public function resolve ( $ name , $ format , array $ data , $ method = 'compose' ) { $ parser = $ this -> parse ( $ name ) ; $ format = $ format ?? $ this -> getPrefersFor ( $ parser ) ; return $ parser -> compose ( $ format , $ data , $ method ) ; }
Resolve parser from factory.

@param  string  $name
@param  string|null  $format
@param  array  $data
@param  string  $method

@return mixed
Resolve parser from factory .