Skip to content

Commit

Permalink
Deployed dc781b6 to 12.x with MkDocs 1.4.3 and mike 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 4, 2024
1 parent 5a25a28 commit 0ba0a9c
Show file tree
Hide file tree
Showing 5 changed files with 241 additions and 240 deletions.
5 changes: 3 additions & 2 deletions 12.x/dependency-injection/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5259,7 +5259,8 @@ <h1 id="dependency-injection">Dependency Injection<a class="headerlink" href="#d
</div>
<h2 id="autowire">Autowire<a class="headerlink" href="#autowire" title="Permanent link">&para;</a></h2>
<p><span class="twemoji"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.75 6.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z"/><path d="M2.5 1h8.44a1.5 1.5 0 0 1 1.06.44l10.25 10.25a1.5 1.5 0 0 1 0 2.12l-8.44 8.44a1.5 1.5 0 0 1-2.12 0L1.44 12A1.497 1.497 0 0 1 1 10.94V2.5A1.5 1.5 0 0 1 2.5 1Zm0 1.5v8.44l10.25 10.25 8.44-8.44L10.94 2.5Z"/></svg></span> 12.5+</p>
<p>Command files may inject Drush and Drupal services by adding the <a href="https://github.com/drush-ops/drush/blob/12.x/src/Commands/AutowireTrait.php">AutowireTrait</a> to the class (example: <a href="https://github.com/drush-ops/drush/blob/12.x/src/Commands/pm/PmCommands.php">PmCommands</a>). This enables your <a href="https://www.drupal.org/node/3396179">Constructor parameter type hints determine the the injected service</a>. When a type hint is insufficient, an <a href="https://www.drupal.org/node/3396179">#[Autowire] Attribute</a> on the constructor property (with <em>service:</em> named argument) directs AutoWireTrait to the right service (example: <a href="https://github.com/drush-ops/drush/blob/12.x/src/Commands/core/LoginCommands.php">LoginCommands</a>).</p>
<p>Command files may inject Drush and Drupal services by adding the <a href="https://github.com/drush-ops/drush/blob/12.x/src/Commands/AutowireTrait.php">AutowireTrait</a> to the class (example: <a href="https://github.com/drush-ops/drush/blob/12.x/src/Commands/core/MaintCommands.php">MaintCommands</a>). This enables your <a href="https://www.drupal.org/node/3396179">Constructor parameter type hints determine the the injected service</a>. When a type hint is insufficient, an <a href="https://www.drupal.org/node/3396179">#[Autowire] Attribute</a> on the constructor property (with
<em>service:</em> named argument) directs AutoWireTrait to the right service.</p>
<p>If your command is not found by Drush, add the <code>-vvv</code> option for debug info about any service instantiation errors. If Autowire is still insufficient, a commandfile may implement its own <code>create()</code> method (see below).</p>
<h2 id="create-method">create() method<a class="headerlink" href="#create-method" title="Permanent link">&para;</a></h2>
<p><span class="twemoji"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.75 6.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z"/><path d="M2.5 1h8.44a1.5 1.5 0 0 1 1.06.44l10.25 10.25a1.5 1.5 0 0 1 0 2.12l-8.44 8.44a1.5 1.5 0 0 1-2.12 0L1.44 12A1.497 1.497 0 0 1 1 10.94V2.5A1.5 1.5 0 0 1 2.5 1Zm0 1.5v8.44l10.25 10.25 8.44-8.44L10.94 2.5Z"/></svg></span> 11.6+</p>
Expand Down Expand Up @@ -5313,7 +5314,7 @@ <h2 id="inflection">Inflection<a class="headerlink" href="#inflection" title="Pe

<div class="md-source-date">
<small>
Authors: <span class='git-page-authors git-authors'><a href='mailto:[email protected]'>Esolitos Marlon</a>, <a href='mailto:[email protected]'>Greg Anderson</a>, <a href='mailto:[email protected]'>Moshe Weitzman</a>, <a href='mailto:[email protected]'>codebymikey</a></span>
Authors: <span class='git-page-authors git-authors'><a href='mailto:[email protected]'>Esolitos Marlon</a>, <a href='mailto:[email protected]'>Greg Anderson</a>, <a href='mailto:[email protected]'>Moshe Weitzman</a></span>
</small>
</div>

Expand Down
2 changes: 1 addition & 1 deletion 12.x/search/search_index.json

Large diffs are not rendered by default.

Loading

0 comments on commit 0ba0a9c

Please sign in to comment.