injector icon indicating copy to clipboard operation
injector copied to clipboard

PSR-11 compatible injector

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

It would be nice to improve the `MissingRequiredArgumentException` - add a flag whether the Container is passed to the Injector. And if the Container is not passed, and the argument...

type:enhancement
status:ready for adoption

| Q | A | ------------- | --- | Is bugfix? | ❌ | New feature? | ✔️ | Breaks BC? | ❌ | Fixed issues | -

After next php release we should remove skipness from this test case: InjectorTest::testInvokeStaticWithStaticCalls _Originally posted by @roxblnfk in https://github.com/yiisoft/injector/pull/58#discussion_r753660537_

type:test

To ensure Injector is fine with popular container it is a good idea to run tests against: 1. yiisoft/di 2. php-di 3. league container Likely it won't reveal any issues...

type:test

```php $injector->addDependenceInjector( new DependenceInjector() ->withParamClass(TestInterface::class) ->withParamName('testA') ->referenceTo(TestA::class) ); $injector->addDependenceInjector( new DependenceInjector() ->withClass(MethodСlass::class) ->withParamClass(TestInterface::class) ->referenceTo(TestB::class) ); $injector->addDependenceInjector( new DependenceInjector() ->withClass(MethodСlass::class) ->withMethod('actionTest') ->withParamName('testA') ->referenceTo('containerID') ); // The following code is just for...

status:under discussion

- Contents of 'docs/guide/en/readme.md' appended to main 'readme.md' so that 'every readme.md has general usage' etc - Decide whether to keep - Guide: [Russian](docs/guide/ru/README.md)