Upgrade Twig library
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
/**
|
||||
* Exception thrown when a security error occurs at runtime.
|
||||
*
|
||||
* @package twig
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
class Twig_Sandbox_SecurityError extends Twig_Error
|
||||
{
|
||||
|
@@ -12,8 +12,7 @@
|
||||
/**
|
||||
* Represents a security policy which need to be enforced when sandbox mode is enabled.
|
||||
*
|
||||
* @package twig
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
class Twig_Sandbox_SecurityPolicy implements Twig_Sandbox_SecurityPolicyInterface
|
||||
{
|
||||
|
@@ -12,14 +12,13 @@
|
||||
/**
|
||||
* Interfaces that all security policy classes must implements.
|
||||
*
|
||||
* @package twig
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
interface Twig_Sandbox_SecurityPolicyInterface
|
||||
{
|
||||
function checkSecurity($tags, $filters, $functions);
|
||||
public function checkSecurity($tags, $filters, $functions);
|
||||
|
||||
function checkMethodAllowed($obj, $method);
|
||||
public function checkMethodAllowed($obj, $method);
|
||||
|
||||
function checkPropertyAllowed($obj, $method);
|
||||
public function checkPropertyAllowed($obj, $method);
|
||||
}
|
||||
|
Reference in New Issue
Block a user