factory icon indicating copy to clipboard operation
factory copied to clipboard

Object factory that is able to resolve dependencies from PSR-11 container

Results 7 factory issues
Sort by recently updated
recently updated
newest added

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start)...

dependencies
php

```php $factory->create(EngineInterface::class, 146); ``` instead of ```php $factory->create([ 'class' => EngineInterface::class, '__construct()' => [ 'power' => 146, ], ]); ```

For example, `FactoryReference` and `ContainerReference`.

type:enhancement
status:under discussion

For use in callable definitions: `'my-definition' => static fn(Factory $fn) => $fn->create(...);`

type:enhancement
status:under discussion

See https://github.com/yiisoft/friendly-exception

type:enhancement

This is necessary for consistenc with `StrictFactory`, where `$definitions` is required parameter and is in the first place.

severity:BC breaking