Skip to content

Commit 5904c07

Browse files
committed
fix container
1 parent e0fdf16 commit 5904c07

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/workflow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,14 @@ if ($result->skip()->contains('optionalJob')) {
339339

340340
## Dependency Injection
341341

342-
Workflow integrates with [chevere/container](https://chevere.org/packages/container) to provide automatic dependency injection for Action classes. When your jobs use Action classes with constructor dependencies, you can provide a container that will automatically resolve and inject those dependencies.
342+
Workflow supports automatic dependency injection for Action classes using any [PSR-11](https://www.php-fig.org/psr/psr-11/) compatible container. When your jobs use Action classes with constructor dependencies, you can provide a container that will automatically resolve and inject those dependencies. [chevere/container](https://chevere.org/packages/container) is one example, but any PSR-11 container works.
343343

344344
### Passing a Container
345345

346346
Pass a `ContainerInterface` instance as the second argument to `run()`:
347347

348348
```php
349-
use Chevere\Container\Container;
349+
use Chevere\Container\Container; // or any PSR-11 container
350350
use function Chevere\Workflow\run;
351351

352352
// Create container with dependencies

0 commit comments

Comments
 (0)