SecurityPolicyInterface.php 563B

1234567891011121314151617181920212223242526
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2009 Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. /**
  11. * Interfaces that all security policy classes must implements.
  12. *
  13. * @package twig
  14. * @author Fabien Potencier <fabien@symfony.com>
  15. */
  16. interface Twig_Sandbox_SecurityPolicyInterface
  17. {
  18. function checkSecurity($tags, $filters, $functions);
  19. function checkMethodAllowed($obj, $method);
  20. function checkPropertyAllowed($obj, $method);
  21. }