public function addExtension($extension)
    {
        /** @var ViewFinderInterface $viewFinder */
        foreach ($this->viewFinders as $viewFinder) {
            try {
                $viewFinder->addExtension($extension);
            } catch (\Exception $e) {
            }
        }
    }
public function addExtension($extension)
    {
        /** @var ViewFinderInterface $viewFinder */
        foreach ($this->viewFinders as $viewFinder) {
            try {
                $viewFinder->addExtension($extension);
            } catch (\Exception $e) {
            }
        }
    }
public function addExtension ( $ extension ) { /** @var ViewFinderInterface $viewFinder */ foreach ( $ this -> viewFinders as $ viewFinder ) { try { $ viewFinder -> addExtension ( $ extension ) ; } catch ( \ Exception $ e ) { } } }
Add a valid view extension to the finder.

@param  string  $extension
@return void
Add a valid view extension to the finder .