public static function getComponentClassInstance(string $componentId)
    {
        if (!isset(self::$componentInstances[$componentId])) {
            $component = self::getComponentWithIdentifier($componentId);
            if (is_null($component)) {
                return null;
            }
            
            self::$componentInstances[$componentId] = $component->getInstance();
        }
        
        return @self::$componentInstances[$componentId];
    }
public static function getComponentClassInstance(string $componentId)
    {
        if (!isset(self::$componentInstances[$componentId])) {
            $component = self::getComponentWithIdentifier($componentId);
            if (is_null($component)) {
                return null;
            }
            
            self::$componentInstances[$componentId] = $component->getInstance();
        }
        
        return @self::$componentInstances[$componentId];
    }
public static function getComponentClassInstance ( string $ componentId ) { if ( ! isset ( self :: $ componentInstances [ $ componentId ] ) ) { $ component = self :: getComponentWithIdentifier ( $ componentId ) ; if ( is_null ( $ component ) ) { return null ; } self :: $ componentInstances [ $ componentId ] = $ component -> getInstance ( ) ; } return @ self :: $ componentInstances [ $ componentId ] ; }
Get instance of the component with the given identifier.

@param string $componentId
Identifier of the component to get the instance of.

@return mixed Instance of the component.
Get instance of the component with the given identifier .