public static function &getComponents(): array
    {
        if (empty(self::$runtimeComponents)) {
            foreach (self::getAddons() as $addon) {
                self::$runtimeComponents = array_merge(self::$runtimeComponents, $addon->getComponents());
            }
        }
        
        return self::$runtimeComponents;
    }
public static function &getComponents(): array
    {
        if (empty(self::$runtimeComponents)) {
            foreach (self::getAddons() as $addon) {
                self::$runtimeComponents = array_merge(self::$runtimeComponents, $addon->getComponents());
            }
        }
        
        return self::$runtimeComponents;
    }
public static function & getComponents ( ) : array { if ( empty ( self :: $ runtimeComponents ) ) { foreach ( self :: getAddons ( ) as $ addon ) { self :: $ runtimeComponents = array_merge ( self :: $ runtimeComponents , $ addon -> getComponents ( ) ) ; } } return self :: $ runtimeComponents ; }
Get all the components for all configured addons.

@return Component[] Containing all the components for all configured addons.
Get all the components for all configured addons .