public function addPath($path)
    {
        try {
            $this->twigFileLoader->addPath($path);
        } catch (\Twig_Error_Loader $e) {
            throw new InvalidPathException($e->getMessage());
        }
    }
public function addPath($path)
    {
        try {
            $this->twigFileLoader->addPath($path);
        } catch (\Twig_Error_Loader $e) {
            throw new InvalidPathException($e->getMessage());
        }
    }
public function addPath ( $ path ) { try { $ this -> twigFileLoader -> addPath ( $ path ) ; } catch ( \ Twig_Error_Loader $ e ) { throw new InvalidPathException ( $ e -> getMessage ( ) ) ; } }
Adds a path to the template environment.

@param $path
@throws InvalidPathException
Adds a path to the template environment .