ObjectAclManipulatorInterface.php 936 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Sonata project.
  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 Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
  12. use Symfony\Component\Console\Output\OutputInterface;
  13. use Sonata\AdminBundle\Admin\AdminInterface;
  14. interface ObjectAclManipulatorInterface
  15. {
  16. /**
  17. * Batch configure the ACLs for all objects handled by an Admin
  18. *
  19. * @abstract
  20. *
  21. * @param OutputInterface $output
  22. * @param AdminInterface $admin
  23. * @param UserSecurityIdentity $securityIdentity
  24. *
  25. * @throws ModelManagerException
  26. * @return void
  27. */
  28. function batchConfigureAcls(OutputInterface $output, AdminInterface $admin, UserSecurityIdentity $securityIdentity = null);
  29. }