Skip to content

Commit

Permalink
Make it possible to set the uri option in drush.yml. Fixes drush-ops#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Oct 31, 2017
1 parent a14c677 commit 621f676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ public function refineUriSelection($cwd)
$uri = $selfAliasRecord->uri();

if (empty($uri)) {
$uri = $this->bootstrapManager()->selectUri($cwd);
if (!$uri = $this->config->get('options.uri')) {
$uri = $this->bootstrapManager()->selectUri($cwd);
}
$selfAliasRecord->setUri($uri);
$this->aliasManager->setSelf($selfAliasRecord);
}
Expand Down
1 change: 0 additions & 1 deletion src/SiteAlias/SiteAliasManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ protected function buildSelf(PreflightArgsInterface $preflightArgs, Environment
return new AliasRecord(
[
'root' => $root,
'uri' => $preflightArgs->uri(),
],
'@self'
);
Expand Down

0 comments on commit 621f676

Please sign in to comment.