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
2016-02-12 17:29:18 +01:00
2505e7ef63
Fixes #9785 : Added ability to invoke callback with dependency resolution to DI container
2016-02-07 14:55:45 +03:00
fcf25e8fa1
Fixed \yii\di\Instance::ensure()
to work with minimum settings
2016-01-01 10:39:04 +02:00
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
67658cf57d
Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly
2015-05-31 13:39:30 +03:00
f11bdfa2a7
Grammar fix: followings -> following
2015-04-21 15:08:16 +02:00
1088fd496d
Added support to yii\di\Container
to instantiate and configure an object that implements yii\base\Configurable
.
2015-02-19 22:46:49 -05:00
135c54ecdd
Fixed typo.
2015-01-04 21:51:46 -05:00
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
166cb99be0
Fixes #6632 : yii\di\Container::get()
did not handle config parameter correctly when it is passed as a constructor parameter
2014-12-24 10:19:34 -05:00
3a1e0f3a5c
property codestyle framework
2014-07-30 00:21:31 +02:00
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
2014-06-20 17:40:00 +04:00
3ea2ffbbd2
Fixed the issue that ServiceLocator
still returns the old component after calling set()
with a new definition
2014-05-11 15:03:22 -04:00
0880656be3
Fixes #3311 .
2014-05-01 22:19:48 -04:00
7c390d62d6
typo in comments
...
property can be set via [[setComponents()]]
2014-04-26 02:53:45 +04:00
4eb7906a3e
Fixes #3204 : yii\di\Container
did not handle the $config
parameter well in case when it does not have a default value
2014-04-21 14:58:10 -04:00
c1445871f4
Correction of many errors code inspection.
...
Adjustments code according to the standards.
Adding missing PHPDoc comment.
2014-04-16 19:29:07 -03:00
5adcac52a6
improved DI definition normalization.
2014-03-30 17:03:44 -04:00
1e75427393
updated classmap and phpdoc
2014-03-24 23:26:30 +01:00
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
b1c4416218
Final touchup.
2014-03-21 00:02:15 -04:00
bda1ffa6ce
Finished refactoring of DI container and service locator.
2014-03-20 20:52:23 -04:00
87df068eb0
DI WIP
2014-03-20 19:54:52 -04:00
8e11ad0360
refactored code to use Instance::ensure()
2014-03-18 12:31:27 -04:00
72c99663ff
Refactored container.
2014-03-18 11:49:52 -04:00
43fb937a20
Added unit tests.
2014-03-18 10:45:25 -04:00
8c2e39235f
Turn module and application into DI containers.
2014-03-17 23:57:01 -04:00
66abd5b8ab
Added DI container implementation.
2014-03-17 23:22:45 -04:00