public function setAliases(array $aliases)
    {
        foreach ($aliases as $name => $alias) {
            if (!($module = $this->getModule($name))) {
                $module = $this->addModule($name);
            }

            $module->setAlias($alias);
        }

        return $this;
    }