/** * Get the appropriate view engine for the given path. * * @param string $path * @return \Illuminate\View\Engines\EngineInterface * * @throws \InvalidArgumentException */ public function getEngineFromPath($path) { if (!($extension = $this->getExtension($path))) { throw new InvalidArgumentException("Unrecognized extension in file: {$path}"); } $engine = $this->extensions[$extension]; return $this->engines->resolve($engine); }
/** * Get the appropriate view engine for the given path. * * @param string $path * @return \Illuminate\View\Engines\EngineInterface */ protected function getEngineFromPath($path) { $engine = $this->extensions[$this->getExtension($path)]; return $this->engines->resolve($engine); }
/** * EngineInterface * * @return EngineInterface */ public function getLexiconEngine() { return $this->engines->resolve('lexicon'); }