You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pmjones What do you think of providing a way to access the DI container via the Radar\Adr\Adr instance returned by the Radar\Adr\Boot::boot() method? I'm thinking this is parallel to the access provided to Aura\Route.
I'm just looking for your philosophical opinion here on the appropriateness of doing this, or what an alternative might be. I'm happy to write the code.
I need something like this because of how we initialize our route maps via Radar from a top-level file, e.g. index.php. For example, this works, but means I've created 2 DI containers, and that the configuration file is getting read/parsed twice to set the DI values used within it (in my case, URLs for associated web sites):
@pmjones What do you think of providing a way to access the DI container via the
Radar\Adr\Adr
instance returned by theRadar\Adr\Boot::boot()
method? I'm thinking this is parallel to the access provided toAura\Route
.I'm just looking for your philosophical opinion here on the appropriateness of doing this, or what an alternative might be. I'm happy to write the code.
I need something like this because of how we initialize our route maps via Radar from a top-level file, e.g.
index.php
. For example, this works, but means I've created 2 DI containers, and that the configuration file is getting read/parsed twice to set the DI values used within it (in my case, URLs for associated web sites):The
Routes
class above is my local class which contains all of these sorts of calls:The whole reason for having the second DI is so that I can get the
$site
value injected from the exact same config file specified inClx\Web\_Config
.If I could instead do something like this, maybe it would make sense and be more usable:
And have Radar proxy that through to my DIC (Aura Di in this case).
The text was updated successfully, but these errors were encountered: