public function findAllTemplates()
    {
        if (null !== $this->templates) {
            return $this->templates;
        }

        $templates = array();

        foreach ($this->paths as $dir) {
            $templates = array_merge($templates, $this->findTemplatesInFolder($dir));
        }

        return $this->templates = $templates;
    }
public function findAllTemplates()
    {
        if (null !== $this->templates) {
            return $this->templates;
        }

        $templates = array();

        foreach ($this->paths as $dir) {
            $templates = array_merge($templates, $this->findTemplatesInFolder($dir));
        }

        return $this->templates = $templates;
    }
public function findAllTemplates ( ) { if ( null !== $ this -> templates ) { return $ this -> templates ; } $ templates = array ( ) ; foreach ( $ this -> paths as $ dir ) { $ templates = array_merge ( $ templates , $ this -> findTemplatesInFolder ( $ dir ) ) ; } return $ this -> templates = $ templates ; }
Find all the templates in the bundle and in the kernel Resources folder.

@return TemplateReferenceInterface[]
Find all the templates in the bundle and in the kernel Resources folder .