protected function initiate()
    {
        $name = $this->name;
        $data = ['acl' => [], 'actions' => [], 'roles' => []];
        $data = \array_merge($data, $this->memory->get("acl_{$name}", []));

        // Loop through all the roles and actions in memory and add it to
        // this ACL instance.
        $this->roles->attach($data['roles']);
        $this->actions->attach($data['actions']);

        // Loop through all the ACL in memory and add it to this ACL
        // instance.
        foreach ($data['acl'] as $id => $allow) {
            list($role, $action) = \explode(':', $id);
            $this->assign($role, $action, $allow);
        }

        return $this->sync();
    }
protected function initiate()
    {
        $name = $this->name;
        $data = ['acl' => [], 'actions' => [], 'roles' => []];
        $data = \array_merge($data, $this->memory->get("acl_{$name}", []));

        // Loop through all the roles and actions in memory and add it to
        // this ACL instance.
        $this->roles->attach($data['roles']);
        $this->actions->attach($data['actions']);

        // Loop through all the ACL in memory and add it to this ACL
        // instance.
        foreach ($data['acl'] as $id => $allow) {
            list($role, $action) = \explode(':', $id);
            $this->assign($role, $action, $allow);
        }

        return $this->sync();
    }
protected function initiate ( ) { $ name = $ this -> name ; $ data = [ 'acl' => [ ] , 'actions' => [ ] , 'roles' => [ ] ] ; $ data = \ array_merge ( $ data , $ this -> memory -> get ( "acl_{$name}" , [ ] ) ) ; // Loop through all the roles and actions in memory and add it to // this ACL instance. $ this -> roles -> attach ( $ data [ 'roles' ] ) ; $ this -> actions -> attach ( $ data [ 'actions' ] ) ; // Loop through all the ACL in memory and add it to this ACL // instance. foreach ( $ data [ 'acl' ] as $ id => $ allow ) { list ( $ role , $ action ) = \ explode ( ':' , $ id ) ; $ this -> assign ( $ role , $ action , $ allow ) ; } return $ this -> sync ( ) ; }
Initiate ACL data from memory.

@return $this
Initiate ACL data from memory .