src/Sulu/Bundle/PageBundle/Command/ValidateWebspacesCommand.php
private function validateTwigTemplate($template)
    {
        $loader = $this->twig->getLoader();
        if (!$loader->exists($template)) {
            throw new \Exception(sprintf(
                'Unable to find template "%s".',
                $template
            ));
        }
    }
private function validateTwigTemplate($template)
    {
        $loader = $this->twig->getLoader();
        if (!$loader->exists($template)) {
            throw new \Exception(sprintf(
                'Unable to find template "%s".',
                $template
            ));
        }
    }
private function validateTwigTemplate ( $ template ) { $ loader = $ this -> twig -> getLoader ( ) ; if ( ! $ loader -> exists ( $ template ) ) { throw new \ Exception ( sprintf ( 'Unable to find template "%s".' , $ template ) ) ; } }
Validate twig template.

@param string $template

@throws \Exception
Validate twig template .