comparison core/lib/Drupal/Core/Template/TwigSandboxPolicy.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
15 */ 15 */
16 class TwigSandboxPolicy implements \Twig_Sandbox_SecurityPolicyInterface { 16 class TwigSandboxPolicy implements \Twig_Sandbox_SecurityPolicyInterface {
17 17
18 /** 18 /**
19 * An array of whitelisted methods in the form of methodName => TRUE. 19 * An array of whitelisted methods in the form of methodName => TRUE.
20 *
21 * @var array
20 */ 22 */
21 protected $whitelisted_methods = NULL; 23 protected $whitelisted_methods;
22 24
23 /** 25 /**
24 * An array of whitelisted method prefixes -- any method starting with one of 26 * An array of whitelisted method prefixes -- any method starting with one of
25 * these prefixes will be allowed. 27 * these prefixes will be allowed.
28 *
29 * @var array
26 */ 30 */
27 protected $whitelisted_prefixes = NULL; 31 protected $whitelisted_prefixes;
28 32
29 /** 33 /**
30 * An array of class names for which any method calls are allowed. 34 * An array of class names for which any method calls are allowed.
35 *
36 * @var array
31 */ 37 */
32 protected $whitelisted_classes = NULL; 38 protected $whitelisted_classes;
33 39
34 /** 40 /**
35 * Constructs a new TwigSandboxPolicy object. 41 * Constructs a new TwigSandboxPolicy object.
36 */ 42 */
37 public function __construct() { 43 public function __construct() {