X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fdocs%2Fdependency-injection.md;h=76a3803cd158df0609bf1911909db48e0f385531;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=a6428b394210c11dad467aae40b49f13051b6876;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/drush/drush/docs/dependency-injection.md b/vendor/drush/drush/docs/dependency-injection.md index a6428b394..76a3803cd 100644 --- a/vendor/drush/drush/docs/dependency-injection.md +++ b/vendor/drush/drush/docs/dependency-injection.md @@ -49,8 +49,8 @@ For example: namespace Drupal\my_module\Commands; use Drush\Commands\DrushCommands; -use Drush\SiteAlias\SiteAliasManagerAwareInterface; -use Drush\SiteAlias\SiteSliasManagerAwareTrait; +use Consolidation\SiteAlias\SiteAliasManagerAwareInterface; +use Consolidation\SiteAlias\SiteSliasManagerAwareTrait; class MyModuleiCommands extends DrushCommands implements SiteAliasManagerAwareInterface { @@ -62,7 +62,7 @@ $this->logger()->success(‘The current alias is {name}’, [‘name’ => $self } } ``` -All Drush command files extend DrushCommands. DrushCommands implements ConfigAwareInterface, IOAwareInterface, LoggerAwareInterface, which gives access to `$this->getConfig()`, ```$this->logger()` and other ways to do input and output. See the [IO documentation](io.md) for more information. +All Drush command files extend DrushCommands. DrushCommands implements ConfigAwareInterface, IOAwareInterface, LoggerAwareInterface, which gives access to `$this->getConfig()`, `$this->logger()` and other ways to do input and output. See the [IO documentation](io.md) for more information. Any additional services that are desired must be injected by implementing the appropriate inflection interface.