ObjectAclManipulatorInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  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 Sonata\AdminBundle\Util;
  11. use Sonata\AdminBundle\Admin\AdminInterface;
  12. use Symfony\Component\Console\Output\OutputInterface;
  13. use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
  14. /**
  15. * Interface ObjectAclManipulatorInterface.
  16. *
  17. * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
  18. */
  19. interface ObjectAclManipulatorInterface
  20. {
  21. /**
  22. * Batch configure the ACLs for all objects handled by an Admin.
  23. *
  24. * @abstract
  25. *
  26. * @param OutputInterface $output
  27. * @param AdminInterface $admin
  28. * @param UserSecurityIdentity $securityIdentity
  29. *
  30. * @throws \Sonata\AdminBundle\Exception\ModelManagerException
  31. */
  32. public function batchConfigureAcls(OutputInterface $output, AdminInterface $admin, UserSecurityIdentity $securityIdentity = null);
  33. }