diff --git a/modules/system/twig/SecurityPolicy.php b/modules/system/twig/SecurityPolicy.php index bcbc7a1501..aacd39ba63 100644 --- a/modules/system/twig/SecurityPolicy.php +++ b/modules/system/twig/SecurityPolicy.php @@ -20,6 +20,8 @@ final class SecurityPolicy implements SecurityPolicyInterface protected $blockedMethods = [ 'addDynamicMethod', 'addDynamicProperty', + 'bindEvent', + 'bindEventOnce', ]; /**