/** * If a user wants to use the injector as a static reference * * @param array $config * @return Injector */ public static function inst($config = null) { if (!self::$instance) { self::$instance = new Injector($config); } return self::$instance; }
/** * Sets the default global injector instance. * * @param Injector $instance * @return Injector Reference to new active Injector instance */ public static function set_inst(Injector $instance) { return self::$instance = $instance; }