We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/context-hub/generator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
ContentBuilderFactory.php•560 B
<?php
declare(strict_types=1);
namespace Butschster\ContextGenerator\Lib\Content;
use Butschster\ContextGenerator\Lib\Content\Renderer\MarkdownRenderer;
use Butschster\ContextGenerator\Lib\Content\Renderer\RendererInterface;
final readonly class ContentBuilderFactory
{
public function __construct(
private RendererInterface $defaultRenderer = new MarkdownRenderer(),
) {}
public function create(?RendererInterface $renderer = null): ContentBuilder
{
return new ContentBuilder($renderer ?? $this->defaultRenderer);
}
}