public function getPaths(): array
    {
        $paths = [];
        foreach ($this->finder->getNamespaces() as $namespace) {
            $name = ($namespace !== FileViewFinder::DEFAULT_NAMESPACE) ? $namespace : null;
            foreach ($this->finder->getPaths($namespace) as $path) {
                $paths[] = new TemplatePath($path, $name);
            }
        }

        return $paths;
    }
public function getPaths(): array
    {
        $paths = [];
        foreach ($this->finder->getNamespaces() as $namespace) {
            $name = ($namespace !== FileViewFinder::DEFAULT_NAMESPACE) ? $namespace : null;
            foreach ($this->finder->getPaths($namespace) as $path) {
                $paths[] = new TemplatePath($path, $name);
            }
        }

        return $paths;
    }
public function getPaths ( ) : array { $ paths = [ ] ; foreach ( $ this -> finder -> getNamespaces ( ) as $ namespace ) { $ name = ( $ namespace !== FileViewFinder :: DEFAULT_NAMESPACE ) ? $ namespace : null ; foreach ( $ this -> finder -> getPaths ( $ namespace ) as $ path ) { $ paths [ ] = new TemplatePath ( $ path , $ name ) ; } } return $ paths ; }
Get the template directories.

@return TemplatePath[]
Get the template directories .