Pratham Software interview question

How you globally access middleware?