Skip to content

Commit 05ba561

Browse files
committed
1 parent 2c9a38d commit 05ba561

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/site-alias-manager.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
Site Alias Manager
22
==================
33

4-
The [Site Alias Manager (SAM)](https://github.com/drush-ops/drush/blob/master/src/SiteAlias/SiteAliasManager.php) service is used to retrieve information about one or all of the site aliases for the current installation.
4+
The [Site Alias Manager (SAM)](https://github.com/consolidation/site-alias/blob/master/src/SiteAliasManager.php) service is used to retrieve information about one or all of the site aliases for the current installation.
55

66
- An informative example is the [browse command](https://github.com/drush-ops/drush/blob/master/src/Commands/core/BrowseCommands.php)
77
- A commandfile gets access to the SAM by implementing the SiteAliasManagerAwareInterface and *use*ing the SiteAliasManagerAwareTrait trait. Then you gain access via `$this->siteAliasManager()`.
88
- If an alias was used for the current request, it is available via $this->siteAliasManager()->getself().
9-
- The SAM generally deals in [AliasRecord](https://github.com/drush-ops/drush/blob/master/src/SiteAlias/AliasRecord.php) objects. That is how any given site alias is represented. See its methods for determining things like whether the alias points to a local host or remote host.
9+
- The SAM generally deals in [AliasRecord](https://github.com/consolidation/site-alias/blob/master/src/AliasRecord.php) objects. That is how any given site alias is represented. See its methods for determining things like whether the alias points to a local host or remote host.
1010
- [An example site alias file](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.site.yml).
1111
- [Dynamically alter site aliases](https://raw.githubusercontent.com/drush-ops/drush/master/examples/Commands/SiteAliasAlterCommands.php).
12+
- The SAM is also available for as [a standalone Composer project](https://github.com/consolidation/site-alias). More information available in the README there.

examples/example.site.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
# To convert legacy alias (*.aliases.drushrc.php) to yml, run the
55
# site:alias-convert command.
66
#
7-
# Use this file as a guide to creating your own aliases.
8-
#
97
# Aliases are commonly used to define short names for
108
# local or remote Drupal installations; however, an alias
119
# is really nothing more than a collection of options.
@@ -184,6 +182,8 @@
184182
# It is no longer possible to set environment variables from within an alias.
185183
# This is a planned feature.
186184
#
185+
# See https://github.com/consolidation/site-alias for more developer information about Site Aliases.
186+
#
187187
# An example appears below. Edit to suit and remove the @code / @endcode and
188188
# leading hashes to enable.
189189
#

0 commit comments

Comments
 (0)