Вход Регистрация
Файл: upload/core/vendor/twig/twig/src/Sandbox/SecurityNotAllowedTagError.php
Строк: 31
<?php

/*
 * This file is part of Twig.
 *
 * (c) Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace TwigSandbox;

/**
 * Exception thrown when a not allowed tag is used in a template.
 *
 * @author Martin Hasoň <martin.hason@gmail.com>
 */
final class SecurityNotAllowedTagError extends SecurityError
{
    private 
string $tagName;

    public function 
__construct(string $messagestring $tagName)
    {
        
parent::__construct($message);
        
$this->tagName $tagName;
    }

    public function 
getTagName(): string
    
{
        return 
$this->tagName;
    }
}
Онлайн: 1
Реклама