ObjectAclManipulatorInterface.php 1.1 KB

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