original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Initiate ACL data from memory.
  
  @return $this
docstring_tokens: Initiate ACL data from memory .