Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Acl.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework;
7 
14 class Acl extends \Zend_Acl
15 {
19  const RULE_PERM_DENY = 0;
20 
24  const RULE_PERM_INHERIT = 1;
25 
29  const RULE_PERM_ALLOW = 2;
30 
34  public function __construct()
35  {
36  $this->_roleRegistry = new \Magento\Framework\Acl\Role\Registry();
37  }
38 
46  public function addRoleParent($role, $parent)
47  {
48  $this->_getRoleRegistry()->addParent($role, $parent);
49  return $this;
50  }
51 }
_getRoleRegistry()
Definition: Acl.php:907
const RULE_PERM_DENY
Definition: Acl.php:19
const RULE_PERM_INHERIT
Definition: Acl.php:24
const RULE_PERM_ALLOW
Definition: Acl.php:29
Definition: Acl.php:59
addRoleParent($role, $parent)
Definition: Acl.php:46