/** * @inheritdoc */ protected function addItem($item) { parent::addItem($item); if ($this->_items !== null) { $this->_items[$item->name] = $item; } $this->invalidate(self::PART_ITEMS); return true; }
public function addPermission($permission) { return parent::addItem($permission); }