@stephenwaite
I did thoroughly check the code for twig. I update my repo as I said and I did a search for twig assets. That is what sent me down the rabbit hole to connect the two. As I am learning symfony, I am building a report. I know you got that.
@robert.down
I had to think about this a lot and I would respectfully suggest that the code you wrote in the globals be move to the core directory. I am not sure of the reasoning for continuing the dependency on the globals file unless there is some backwards compatibility that I am missing.
I know you have many years of experience with symfony and are a master developer. This feels like a child giving instructions to their parent.
My reasoning for asking to place it in the core is that we can allow the powerful program to be powerful. What you wrote in many lines can be done in a single line. (this part is in my observations which is limited to a beginners knowledge and a few classes on the program) This allows symfony to hand the dependence injection.