X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fdocs%2Fsite-alias-manager.md;h=014f2246b4545e05925e9e06b35af31e5c23ad59;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=e90711ad9e1d447b07f464ee2d9cd24f00aa028c;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/drush/drush/docs/site-alias-manager.md b/vendor/drush/drush/docs/site-alias-manager.md index e90711ad9..014f2246b 100644 --- a/vendor/drush/drush/docs/site-alias-manager.md +++ b/vendor/drush/drush/docs/site-alias-manager.md @@ -1,11 +1,12 @@ Site Alias Manager ================== -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. +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. - An informative example is the [browse command](https://github.com/drush-ops/drush/blob/master/src/Commands/core/BrowseCommands.php) - A commandfile gets access to the SAM by implementing the SiteAliasManagerAwareInterface and *use*ing the SiteAliasManagerAwareTrait trait. Then you gain access via `$this->siteAliasManager()`. - If an alias was used for the current request, it is available via $this->siteAliasManager()->getself(). -- 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. +- 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. - [An example site alias file](https://raw.githubusercontent.com/drush-ops/drush/master/examples/example.site.yml). - [Dynamically alter site aliases](https://raw.githubusercontent.com/drush-ops/drush/master/examples/Commands/SiteAliasAlterCommands.php). +- The SAM is also available for as [a standalone Composer project](https://github.com/consolidation/site-alias). More information available in the README there.