public function renderGluggiComponent (string $type, string $name, array $context = []) : string
    {
        $component = $this->finder->findComponent($type, $name);

        if (null === $component)
        {
            throw new UnknownComponentException($name, $type);
        }

        $context = array_replace([
            "standalone" => false,
        ], $context);

        return $this->container->get("twig")->render($component->getImportPath(), $context);
    }
public function renderGluggiComponent (string $type, string $name, array $context = []) : string
    {
        $component = $this->finder->findComponent($type, $name);

        if (null === $component)
        {
            throw new UnknownComponentException($name, $type);
        }

        $context = array_replace([
            "standalone" => false,
        ], $context);

        return $this->container->get("twig")->render($component->getImportPath(), $context);
    }
public function renderGluggiComponent ( string $ type , string $ name , array $ context = [ ] ) : string { $ component = $ this -> finder -> findComponent ( $ type , $ name ) ; if ( null === $ component ) { throw new UnknownComponentException ( $ name , $ type ) ; } $ context = array_replace ( [ "standalone" => false , ] , $ context ) ; return $ this -> container -> get ( "twig" ) -> render ( $ component -> getImportPath ( ) , $ context ) ; }
Renders a gluggi component

@param string $type
@param string $name
@param array  $context

@return string
Renders a gluggi component