src/Resolver.php
protected function resolveModule($template, $module)
    {
        $fullName = $module . '::' . $template;
        if (isset($this->templatesMap[$fullName])) {
            $file = $this->normalizePath($this->templatesMap[$fullName]);
            if (! file_exists($file)) {
                throw new RuntimeException(sprintf(
                    'The file "%s" of template "%s" not exists.',
                    $file,
                    $template
                ));
            }

            return $file;
        }

        return $this->findFile($module, $template);
    }
protected function resolveModule($template, $module)
    {
        $fullName = $module . '::' . $template;
        if (isset($this->templatesMap[$fullName])) {
            $file = $this->normalizePath($this->templatesMap[$fullName]);
            if (! file_exists($file)) {
                throw new RuntimeException(sprintf(
                    'The file "%s" of template "%s" not exists.',
                    $file,
                    $template
                ));
            }

            return $file;
        }

        return $this->findFile($module, $template);
    }
protected function resolveModule ( $ template , $ module ) { $ fullName = $ module . '::' . $ template ; if ( isset ( $ this -> templatesMap [ $ fullName ] ) ) { $ file = $ this -> normalizePath ( $ this -> templatesMap [ $ fullName ] ) ; if ( ! file_exists ( $ file ) ) { throw new RuntimeException ( sprintf ( 'The file "%s" of template "%s" not exists.' , $ file , $ template ) ) ; } return $ file ; } return $ this -> findFile ( $ module , $ template ) ; }
Resolves the specified module.

@param string $template The template
@param string $module   The normalized module name

@throws \RuntimeException If the registered template file not exists

@return string|false Returns path to file if it found or false otherwise
Resolves the specified module .