Aura.Di - inject values into container itself?

18 views
Skip to first unread message

Chris Johnson

unread,
Jul 31, 2020, 2:54:07 PM7/31/20
to The Aura Project for PHP
How would I inject a value from outside the Aura.Di container into the configuration of that container? 

That is, because Aura.Di is not my main() obviously, so there is code which runs before the container is configured and created.  For example, logging which needs to start immediately as soon as the PHP application starts, but before the DI is configured.  I need to pass the logging parameter into the DI container, so that the DI container can then provide it to all of the other class instances it will be creating later during execution.  How do I do that?

This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.

If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender or call ClaimLynx at (952) 593-5969.
Reply all
Reply to author
Forward
0 new messages