PageList.php
public function renamePage($id, $newName)
    {
        $this->pages[$newName] = $this->getPage($id);
        unset($this->pages[$id]);
        $this->persist();
    }
public function renamePage($id, $newName)
    {
        $this->pages[$newName] = $this->getPage($id);
        unset($this->pages[$id]);
        $this->persist();
    }
Changes the id of a page.

@param string $id
@param string $newName