src/main/php/creator/FileCreator.php
private function pathForTemplate(string $template): string
    {
        $pathes = $this->resourceLoader->availableResourceUris('creator/' . $template);
        if (!isset($pathes[0])) {
            throw new \RuntimeException('Could not load template ' . $template);
        }

        return $pathes[0];
    }
private function pathForTemplate(string $template): string
    {
        $pathes = $this->resourceLoader->availableResourceUris('creator/' . $template);
        if (!isset($pathes[0])) {
            throw new \RuntimeException('Could not load template ' . $template);
        }

        return $pathes[0];
    }
private function pathForTemplate ( string $ template ) : string { $ pathes = $ this -> resourceLoader -> availableResourceUris ( 'creator/' . $ template ) ; if ( ! isset ( $ pathes [ 0 ] ) ) { throw new \ RuntimeException ( 'Could not load template ' . $ template ) ; } return $ pathes [ 0 ] ; }
finds absolute path for given template file

@param   string $template
@return  string
@throws  \RuntimeException
finds absolute path for given template file