SecurityPolicyInterface.php 560 B

12345678910111213141516171819202122232425
  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. * @author Fabien Potencier <fabien@symfony.com>
  14. */
  15. interface Twig_Sandbox_SecurityPolicyInterface
  16. {
  17. public function checkSecurity($tags, $filters, $functions);
  18. public function checkMethodAllowed($obj, $method);
  19. public function checkPropertyAllowed($obj, $method);
  20. }