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

            $module->setAlias($alias);
        }

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

            $module->setAlias($alias);
        }

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

@param array $aliases a list of aliases, where keys are modules name and value is an alias

@return $this
Sets aliases for modules