public function getIterator()
    {
        $this->kernel->boot();
        $viewDirectories = $this->getPossibleViewDirectories();
        $viewDirectories = $this->removeNotExistingDirectories($viewDirectories);
        $templates       = $this->getTwigTemplatesIn($viewDirectories);
        return new \ArrayIterator($templates);
    }
public function getIterator()
    {
        $this->kernel->boot();
        $viewDirectories = $this->getPossibleViewDirectories();
        $viewDirectories = $this->removeNotExistingDirectories($viewDirectories);
        $templates       = $this->getTwigTemplatesIn($viewDirectories);
        return new \ArrayIterator($templates);
    }
public function getIterator ( ) { $ this -> kernel -> boot ( ) ; $ viewDirectories = $ this -> getPossibleViewDirectories ( ) ; $ viewDirectories = $ this -> removeNotExistingDirectories ( $ viewDirectories ) ; $ templates = $ this -> getTwigTemplatesIn ( $ viewDirectories ) ; return new \ ArrayIterator ( $ templates ) ; }
Returns an iterator that provides Twig template paths.

@return \Traversable
Returns an iterator that provides Twig template paths .