src/Rbac/DbManager.php
protected function getItem($name)
    {
        if (empty($name)) {
            return null;
        }

        if (!empty($this->items[$name])) {
            return $this->items[$name];
        }

        return (new Query())->from($this->itemTable)
            ->where(['name' => $name])
            ->one($this->db)
            ->then(
                function($row) {
                    return $this->populateItem($row);
                }
            );
    }
protected function getItem($name)
    {
        if (empty($name)) {
            return null;
        }

        if (!empty($this->items[$name])) {
            return $this->items[$name];
        }

        return (new Query())->from($this->itemTable)
            ->where(['name' => $name])
            ->one($this->db)
            ->then(
                function($row) {
                    return $this->populateItem($row);
                }
            );
    }
{@inheritdoc}