How To Register Parameter In Module To Be Accessible Globally In App

Hi everybody , i want to register a parameter with the a module which i can access globally within the app without loading that module. eg:-

if i use


Yii::$app->params['md'] = 'md';

in the Module.php file of social module for example and try to get this parameter while browsing the authentication module , i cant access simply because it’s not executed or loaded. simply i’m trying to find a way that enable registering parameters or functions globally when a new module is added

any ideas?

thanks