src/Resolver.php
protected function findFile($module, $template)
    {
        if (! isset($this->modulesMap[$module])) {
            return false;
        }
        $tpl   = str_replace('/', PHP_DS, $template);
        $found = glob($this->modulesMap[$module] . $tpl . '.*');
        if (! $found) {
            return false;
        }
        $file = $found[0];

        $this->templatesMap[$module . '::' . $template] = $file;

        return $file;
    }
protected function findFile($module, $template)
    {
        if (! isset($this->modulesMap[$module])) {
            return false;
        }
        $tpl   = str_replace('/', PHP_DS, $template);
        $found = glob($this->modulesMap[$module] . $tpl . '.*');
        if (! $found) {
            return false;
        }
        $file = $found[0];

        $this->templatesMap[$module . '::' . $template] = $file;

        return $file;
    }
protected function findFile ( $ module , $ template ) { if ( ! isset ( $ this -> modulesMap [ $ module ] ) ) { return false ; } $ tpl = str_replace ( '/' , PHP_DS , $ template ) ; $ found = glob ( $ this -> modulesMap [ $ module ] . $ tpl . '.*' ) ; if ( ! $ found ) { return false ; } $ file = $ found [ 0 ] ; $ this -> templatesMap [ $ module . '::' . $ template ] = $ file ; return $ file ; }
Finds file.

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

@return string|false Returns path to file if it found or false otherwise
Finds file .