RoleLocatorInterface.php 610 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Authorization;
  7. /**
  8. * Links Authorization component with application.
  9. * Responsible for providing the identifier of currently logged in role to \Magento\Framework\Authorization component.
  10. * Should be implemented by application developer that uses \Magento\Framework\Authorization component.
  11. *
  12. * @api
  13. * @since 100.0.2
  14. */
  15. interface RoleLocatorInterface
  16. {
  17. /**
  18. * Retrieve current role
  19. *
  20. * @return string|null
  21. */
  22. public function getAclRoleId();
  23. }