public function createAliases(Project $project, $projectRoot, $environments, $original = null)
    {
        if (!$apps = $this->getDrupalApps($projectRoot)) {
            return false;
        }

        $group = $this->getAliasGroup($project, $projectRoot);

        $success = true;
        foreach ($this->getSiteAliasTypes() as $type) {
            $success = $success && $type->createAliases($project, $group, $apps, $environments, $original);
        }

        return $success;
    }
public function createAliases(Project $project, $projectRoot, $environments, $original = null)
    {
        if (!$apps = $this->getDrupalApps($projectRoot)) {
            return false;
        }

        $group = $this->getAliasGroup($project, $projectRoot);

        $success = true;
        foreach ($this->getSiteAliasTypes() as $type) {
            $success = $success && $type->createAliases($project, $group, $apps, $environments, $original);
        }

        return $success;
    }
public function createAliases ( Project $ project , $ projectRoot , $ environments , $ original = null ) { if ( ! $ apps = $ this -> getDrupalApps ( $ projectRoot ) ) { return false ; } $ group = $ this -> getAliasGroup ( $ project , $ projectRoot ) ; $ success = true ; foreach ( $ this -> getSiteAliasTypes ( ) as $ type ) { $ success = $ success && $ type -> createAliases ( $ project , $ group , $ apps , $ environments , $ original ) ; } return $ success ; }
Create Drush aliases for the provided project and environments.

@param Project       $project      The project
@param string        $projectRoot  The project root
@param Environment[] $environments The environments
@param string        $original     The original group name

@return bool True on success, false on failure.
Create Drush aliases for the provided project and environments .