src/FilesystemResolver.php
/**
     * Attempt to retrieve a result for a given namespace.
     *
     * @param string $template
     * @param string $namespace
     * @return Result|null
     */
Attempt to retrieve a result for a given namespace.
@param string $template
@param string $namespace
@return Result|null
Attempt to retrieve a result for a given namespace . @param string $template @param string $namespace @return Result|null
private function fetchResultForNamespace($template, $namespace)
    {
        foreach ($this->getPath($namespace) as $path) {
            if (! empty($path)) {
                $path .= '/';
            }
            $filename = $path . $template;
            $contents = @file_get_contents($filename);
            if ($contents !== false) {
                $key = $namespace . '::' . $template;
                return new Result($key, $contents, false, $this->isCompiled());
            }
        }
        return null;
    }
private function fetchResultForNamespace ( $ template , $ namespace ) { foreach ( $ this -> getPath ( $ namespace ) as $ path ) { if ( ! empty ( $ path ) ) { $ path .= '/' ; } $ filename = $ path . $ template ; $ contents = @ file_get_contents ( $ filename ) ; if ( $ contents !== false ) { $ key = $ namespace . '::' . $ template ; return new Result ( $ key , $ contents , false , $ this -> isCompiled ( ) ) ; } } return null ; }
Attempt to retrieve a result for a given namespace.
Attempt to retrieve a result for a given namespace .