Commit Graph

13 Commits

Author SHA1 Message Date
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 2017-04-26 03:28:05 +03:00
gagatust
6397791513 Fixed whitespaces to match code style [skip ci] 2017-03-14 09:42:13 +03:00
SilverFire - Dmitry Naumenko
bfa2390d5a Added yii\di\Instance::__set_state() method 2017-03-01 19:29:30 +02:00
Carsten Brandt
a837c59182 improved error message for Instance::ensure() when component does not exist (#12967)
fixes #7333
2016-11-22 17:49:55 +01:00
Carsten Brandt
bda42b68ce fixed yii\di\Instance documentation
fixes #11637
2016-07-11 15:01:17 +02:00
LAV45
fcf25e8fa1 Fixed \yii\di\Instance::ensure() to work with minimum settings 2016-01-01 10:39:04 +02:00
Qiang Xue
135c54ecdd Fixed typo. 2015-01-04 21:51:46 -05:00
Qiang Xue
d341bf02b4 Fixes #6398: Added support for specifying dependent component in terms of a configuration array for classes such as DbCache 2015-01-04 19:28:05 -05:00
Carsten Brandt
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
Qiang Xue
bda1ffa6ce Finished refactoring of DI container and service locator. 2014-03-20 20:52:23 -04:00
Qiang Xue
87df068eb0 DI WIP 2014-03-20 19:54:52 -04:00
Qiang Xue
8e11ad0360 refactored code to use Instance::ensure() 2014-03-18 12:31:27 -04:00
Qiang Xue
66abd5b8ab Added DI container implementation. 2014-03-17 23:22:45 -04:00