Mercurial > hg > isophonics-drupal-site
diff vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicyInterface.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 7a779792577d |
children |
line wrap: on
line diff
--- a/vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicyInterface.php Thu Feb 28 13:21:36 2019 +0000 +++ b/vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicyInterface.php Thu May 09 15:33:08 2019 +0100 @@ -1,26 +1,11 @@ <?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. - */ +use Twig\Sandbox\SecurityPolicyInterface; -/** - * Interfaces that all security policy classes must implements. - * - * @author Fabien Potencier <fabien@symfony.com> - */ -interface Twig_Sandbox_SecurityPolicyInterface -{ - public function checkSecurity($tags, $filters, $functions); +class_exists('Twig\Sandbox\SecurityPolicyInterface'); - public function checkMethodAllowed($obj, $method); - - public function checkPropertyAllowed($obj, $method); +if (\false) { + class Twig_Sandbox_SecurityPolicyInterface extends SecurityPolicyInterface + { + } } - -class_alias('Twig_Sandbox_SecurityPolicyInterface', 'Twig\Sandbox\SecurityPolicyInterface', false);