public static function getAddonProvidingClazz(string $clazz)
    {
        $addons = self::getAddons();
        foreach ($addons as $addon) {
            if (empty($addon->getComponents())) {
                continue;
            }
            
            foreach ($addon->getComponents() as $component) {
                if (empty($component->getClass())) {
                    continue;
                }
                
                if ($component->getClass() == $clazz) {
                    return $addon;
                }
            }
        }
        
        return null;
    }
public static function getAddonProvidingClazz(string $clazz)
    {
        $addons = self::getAddons();
        foreach ($addons as $addon) {
            if (empty($addon->getComponents())) {
                continue;
            }
            
            foreach ($addon->getComponents() as $component) {
                if (empty($component->getClass())) {
                    continue;
                }
                
                if ($component->getClass() == $clazz) {
                    return $addon;
                }
            }
        }
        
        return null;
    }
public static function getAddonProvidingClazz ( string $ clazz ) { $ addons = self :: getAddons ( ) ; foreach ( $ addons as $ addon ) { if ( empty ( $ addon -> getComponents ( ) ) ) { continue ; } foreach ( $ addon -> getComponents ( ) as $ component ) { if ( empty ( $ component -> getClass ( ) ) ) { continue ; } if ( $ component -> getClass ( ) == $ clazz ) { return $ addon ; } } } return null ; }
Get addon configured to provide a certain class.

@param string $clazz
The class the addon should be configured to provide.

@return Addon The a configured to provide a certain class.
Get addon configured to provide a certain class .