Hi all,
Coming back to wrap up this thread.
> On Dec 1, 2014, at 17:15, Brandon Savage <
bra...@brandonsavage.net> wrote:
>
> Hello all,
>
> In v2 of Aura.Di, we introduced an auto-resolution feature that would create objects if the DI container knew how. This creates a number of problems where the DI container determines it can create an object, but does so with incorrect configurations. Currently, by default, Aura.Di turns autoresolution on by default. It's my recommendation that this feature be turned OFF by default.
It sucks, but doing so would be a BC break. A change for this will have to wait for the 3.x version. To soothe the folks who like auto-resolution, it's possible that 3.x may have two implementations: an auto-enabled one, and a manual-only one.
I say again that enabling auto-resolution in the DI container, especially by default, was the biggest mistake I ever made in that package, perhaps in the entire Aura project.
--
Paul M. Jones
pmjo...@gmail.com
http://paul-m-jones.com
Modernizing Legacy Applications in PHP
https://leanpub.com/mlaphp
Solving the N+1 Problem in PHP
https://leanpub.com/sn1php