public function resolve($engine)
    {
        if (isset($this->resolved[$engine])) {
            return $this->resolved[$engine];
        }

        if (isset($this->resolvers[$engine])) {
            return $this->resolved[$engine] = call_user_func($this->resolvers[$engine]);
        }

        throw new InvalidArgumentException("Engine [{$engine}] not found.");
    }
public function resolve($engine)
    {
        if (isset($this->resolved[$engine])) {
            return $this->resolved[$engine];
        }

        if (isset($this->resolvers[$engine])) {
            return $this->resolved[$engine] = call_user_func($this->resolvers[$engine]);
        }

        throw new InvalidArgumentException("Engine [{$engine}] not found.");
    }
public function resolve ( $ engine ) { if ( isset ( $ this -> resolved [ $ engine ] ) ) { return $ this -> resolved [ $ engine ] ; } if ( isset ( $ this -> resolvers [ $ engine ] ) ) { return $ this -> resolved [ $ engine ] = call_user_func ( $ this -> resolvers [ $ engine ] ) ; } throw new InvalidArgumentException ( "Engine [{$engine}] not found." ) ; }
Resolve an engine instance by name.

@param  string  $engine
@return \Illuminate\Contracts\View\Engine

@throws \InvalidArgumentException
Resolve an engine instance by name .