Danack

Results 291 comments of Danack

Probably because it happens during configuring the injector, not when the injector is making something. I'm guessing some idiot used InjectionException::fromInvalidCallable because it was there, when they probably should have...

> I use a set of classes to define stuff in the injector at route call runtime, so it is only ever defined when it's needed. That sounds fine. >...

> I'm trying to dynamically stick repository classes inside a collection based on the requirements of the route callable. .. So, I always need comments and pages for example, but...

> if the methods inside the Auryn project were protected instead of private it would have been possible @MrBrax Was there a particular method that was the problem? Or just...

Other than it feeling like too much code is being copied, there doesn't appear to be a technical reason against having the child class re-implement the whole of the make...

I've thought about this problem, and although it's a perfectly valid thing to want to do, I haven't been able to come up with a solution internal to this library...

This: ``` $injector->alias('WriteDB', 'DbAdapter'); $injector->alias('ReadDb', 'DbAdapter'); ``` confuses me. Aliasing it meant to be from more general type to a more specific type, but you appear to be using it...

> How is it possible to get Auryn inject non-class arguments into a class constructor? $injector->defineParam($name, $value); > I have many controllers; I would like to use arguments injection in...

>Yep. Router. Args are args from route. In that case, this is what most people do, for what I understand to be your requirements: ``` $route = $router->match($request); // When...

I still am of the opinion that using the 2nd param of make/execute leads to inherent bad surprises, so I only use it in throwaway code. I'm travelling at the...