* @param string $global Name of the global variable.
* @param string|callable $class Name of the class of the real object
* or a factory function to call
* @param string $global Name of the global variable.
* @param string|callable $class Name of the class of the real object
* or a factory function to call