Skip to content

Commit

Permalink
fix: Trivial tpyo (#5994)
Browse files Browse the repository at this point in the history
  • Loading branch information
cafuego committed May 9, 2024
1 parent ca0cbf6 commit d612c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dependency-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ create() method
------------------
:octicons-tag-24: 11.6+

Command files not using Autowire may inject services by adding a create() method to the commandfile. The passed in Container is a [League container](https://container.thephpleague.com/) with a delegate to the Drupal container. Note that the type hint should be to `Psr\Container\ContanierInterface` not `Symfony\Component\DependencyInjection\ContainerInterface`. A create() method and constructor will look something like this:
Command files not using Autowire may inject services by adding a create() method to the commandfile. The passed in Container is a [League container](https://container.thephpleague.com/) with a delegate to the Drupal container. Note that the type hint should be to `Psr\Container\ContainerInterface` not `Symfony\Component\DependencyInjection\ContainerInterface`. A create() method and constructor will look something like this:
```php
class WootStaticFactoryCommands extends DrushCommands
{
Expand Down

0 comments on commit d612c00

Please sign in to comment.