[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of Twig. 5 * 6 * (c) Fabien Potencier 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12 namespace Twig\Sandbox; 13 14 /** 15 * Exception thrown when a not allowed function is used in a template. 16 * 17 * @author Martin HasoĊ <martin.hason@gmail.com> 18 * 19 * @final 20 */ 21 class SecurityNotAllowedFunctionError extends SecurityError 22 { 23 private $functionName; 24 25 public function __construct(string $message, string $functionName, int $lineno = -1, string $filename = null, \Exception $previous = null) 26 { 27 if (-1 !== $lineno) { 28 @trigger_error(sprintf('Passing $lineno as a 3th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); 29 } 30 if (null !== $filename) { 31 @trigger_error(sprintf('Passing $filename as a 4th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); 32 } 33 if (null !== $previous) { 34 @trigger_error(sprintf('Passing $previous as a 5th argument of the %s constructor is deprecated since Twig 2.8.1.', __CLASS__), \E_USER_DEPRECATED); 35 } 36 parent::__construct($message, $lineno, $filename, $previous); 37 $this->functionName = $functionName; 38 } 39 40 public function getFunctionName() 41 { 42 return $this->functionName; 43 } 44 } 45 46 class_alias('Twig\Sandbox\SecurityNotAllowedFunctionError', 'Twig_Sandbox_SecurityNotAllowedFunctionError');
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |