Cyrillos Jonua
db0e7a6c8f
Fixes #13848 : `yii\di\Instance::ensure()` wasn't throwing an exception when `$type` is specified and `$reference` object isn't instance of `$type`
8 years ago
Klimov Paul
928a30588d
memory usage at unit test reduced
8 years ago
Klimov Paul
04a14efd3f
compatibility with PHPUnit 6.x fix
8 years ago
Klimov Paul
dee88787fc
compatibility with PHPUnit 6.x added
8 years ago
Alexander Makarov
3f8e8a89eb
Used more specific unit test assertions in framework tests
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
SilverFire - Dmitry Naumenko
5e422fd27d
Fixed InstanceTest::testRestoreAfterVarExport() to work on HHVM
8 years ago
SilverFire - Dmitry Naumenko
bfa2390d5a
Added `yii\di\Instance::__set_state()` method
8 years ago
Carsten Brandt
66e8158716
Fixes #11771 : Fixed semantics of `yii\di\ServiceLocator::__isset()` to match the behavior of `__get()` which fixes inconsistent behavior on newer PHP versions
8 years ago
SilverFire - Dmitry Naumenko
437825be70
Implemented Container::setDependencies(), Container::setDefinitions
...
Closes #11758
Closes #13029
8 years ago
Carsten Brandt
a837c59182
improved error message for Instance::ensure() when component does not exist ( #12967 )
...
fixes #7333
8 years ago
Carsten Brandt
bda42b68ce
fixed yii\di\Instance documentation
...
fixes #11637
8 years ago
Sam Mousa
dfa292652d
Fixes #11561 : Fixed DI container throwing exceptions for optional dependencies
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
Sam Mousa
8ea4c660da
Several improvements to DI container
...
- Refactored invoke into separate resolve method (reusability)
- Added support for associative params array
- Added PHPUnit group doc to DI tests.
- Improved the tests for better coverage, and fixed a bug discovered by the new tests.
close #10811
9 years ago
mdmunir
2505e7ef63
Fixes #9785 : Added ability to invoke callback with dependency resolution to DI container
9 years ago
LAV45
fcf25e8fa1
Fixed `\yii\di\Instance::ensure()` to work with minimum settings
9 years ago
╃巡洋艦㊣
586684b050
2.0.5 bf7edc5
9 years ago
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago