Component.php
protected static function buildComponent(string $className)
    {
        if (!isset(self::$components[$className])) {
            self::$components[$className] = Container::buildObject("\\Osf\\View\\Component\\" . $className);
            if (!(self::$components[$className] instanceof Component\AbstractComponent)) {
                throw new ArchException('Component [' . $className . '] must be an AbstractComponent');
            }
        }
        return self::$components[$className];
    }
protected static function buildComponent(string $className)
    {
        if (!isset(self::$components[$className])) {
            self::$components[$className] = Container::buildObject("\\Osf\\View\\Component\\" . $className);
            if (!(self::$components[$className] instanceof Component\AbstractComponent)) {
                throw new ArchException('Component [' . $className . '] must be an AbstractComponent');
            }
        }
        return self::$components[$className];
    }
protected static function buildComponent ( string $ className ) { if ( ! isset ( self :: $ components [ $ className ] ) ) { self :: $ components [ $ className ] = Container :: buildObject ( "\\Osf\\View\\Component\\" . $ className ) ; if ( ! ( self :: $ components [ $ className ] instanceof Component \ AbstractComponent ) ) { throw new ArchException ( 'Component [' . $ className . '] must be an AbstractComponent' ) ; } } return self :: $ components [ $ className ] ; }
Manage components instances
@param string $className
@return type
@throws \Osf\Exception\ArchException
@return \Osf\View\Component\AbstractComponent
Manage components instances