What's the best and most efficient way to get some data from one entity and display it on every page? I'm using twig and doctrine.
I have an entity and database table which is only ever going to have one instance. It has things like company name etc. It's essentially configuration stuff so I know a config file is more efficient but I want it to be editable by an admin user.
I guess I'm asking two questions. Where do I put the code to retrieve the entity on every request and how do I get the data into my top level twig template?
Thanks