ObjectAclManipulatorInterface.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
  17. */
  18. interface ObjectAclManipulatorInterface
  19. {
  20. /**
  21. * Batch configure the ACLs for all objects handled by an Admin.
  22. *
  23. * @abstract
  24. *
  25. * @param OutputInterface $output
  26. * @param AdminInterface $admin
  27. * @param UserSecurityIdentity $securityIdentity
  28. *
  29. * @throws ModelManagerException
  30. */
  31. public function batchConfigureAcls(OutputInterface $output, AdminInterface $admin, UserSecurityIdentity $securityIdentity = null);
  32. }