src/Rbac/DbManager.php
protected function getItems($type)
    {
        $query = (new Query())
            ->from($this->itemTable)
            ->where(['type' => $type]);

        return $query->all($this->db)
            ->then(function($rows) {
                $items = [];
                foreach ($rows as $row) {
                    $items[$row['name']] = $this->populateItem($row);
                }
                return $items;
            });
    }
protected function getItems($type)
    {
        $query = (new Query())
            ->from($this->itemTable)
            ->where(['type' => $type]);

        return $query->all($this->db)
            ->then(function($rows) {
                $items = [];
                foreach ($rows as $row) {
                    $items[$row['name']] = $this->populateItem($row);
                }
                return $items;
            });
    }
{@inheritdoc}