PlantumlRenderer
in package
implements
DiagramRenderer
FinalYes
Table of Contents
Interfaces
Properties
- $logger : LoggerInterface
- $plantUmlBinaryPath : string
- $tempDirectory : string
Methods
- __construct() : mixed
- render() : string|null
- ensureDirectoryExists() : bool
- Ensures the directory exists, handling race conditions safely.
Properties
$logger read-only
private
LoggerInterface
$logger
$plantUmlBinaryPath read-only
private
string
$plantUmlBinaryPath
$tempDirectory read-only
private
string
$tempDirectory
Methods
__construct()
public
__construct(LoggerInterface $logger, string $plantUmlBinaryPath[, string|null $tempDirectory = null ]) : mixed
Parameters
- $logger : LoggerInterface
- $plantUmlBinaryPath : string
- $tempDirectory : string|null = null
render()
public
render(RenderContext $renderContext, string $diagram) : string|null
Parameters
- $renderContext : RenderContext
- $diagram : string
Return values
string|nullensureDirectoryExists()
Ensures the directory exists, handling race conditions safely.
private
ensureDirectoryExists(string $directory) : bool
Parameters
- $directory : string
Return values
bool —True if directory exists or was created, false on failure