composer package updates
[openemr.git] / vendor / twig / twig / lib / Twig / Sandbox / SecurityNotAllowedTagError.php
blob4bbd22387397968ed29a4b36df761284a03a15e1
1 <?php
3 /*
4 * This file is part of Twig.
6 * (c) Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 /**
13 * Exception thrown when a not allowed tag is used in a template.
15 * @author Martin HasoĊˆ <martin.hason@gmail.com>
17 class Twig_Sandbox_SecurityNotAllowedTagError extends Twig_Sandbox_SecurityError
19 private $tagName;
21 public function __construct($message, $tagName, $lineno = -1, $filename = null, Exception $previous = null)
23 parent::__construct($message, $lineno, $filename, $previous);
24 $this->tagName = $tagName;
27 public function getTagName()
29 return $this->tagName;
33 class_alias('Twig_Sandbox_SecurityNotAllowedTagError', 'Twig\Sandbox\SecurityNotAllowedTagError', false);