X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fdocs%2Fdependency-injection.md;fp=vendor%2Fdrush%2Fdrush%2Fdocs%2Fdependency-injection.md;h=76a3803cd158df0609bf1911909db48e0f385531;hp=a6428b394210c11dad467aae40b49f13051b6876;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c 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.