AuditLoggerInterface.php 692 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Security\Acl\Model;
  11. /**
  12. * Interface for audit loggers.
  13. *
  14. * @author Johannes M. Schmitt <schmittjoh@gmail.com>
  15. */
  16. interface AuditLoggerInterface
  17. {
  18. /**
  19. * This method is called whenever access is granted, or denied, and
  20. * administrative mode is turned off.
  21. *
  22. * @param bool $granted
  23. * @param EntryInterface $ace
  24. */
  25. public function logIfNeeded($granted, EntryInterface $ace);
  26. }