public function __construct() { if (!extension_loaded('pcre')) { throw new \Exception("The Twig PCRE extension requires PHP extension 'pcre' (see http://www.php.net/pcre)."); } }