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
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
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
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
2014-06-20 17:40:00 +04:00
0880656be3
Fixes #3311 .
2014-05-01 22:19:48 -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
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
43fb937a20
Added unit tests.
2014-03-18 10:45:25 -04:00
66abd5b8ab
Added DI container implementation.
2014-03-17 23:22:45 -04:00