-
-
Notifications
You must be signed in to change notification settings - Fork 0
TemplateLoader
github-actions edited this page Apr 10, 2026
·
2 revisions
Loads license template files from the filesystem.
This class reads license template files from a configured templates directory. The default directory is the packaged resources/licenses folder.
- Full name:
\FastForward\DevTools\License\TemplateLoader - This class is marked as final and can't be subclassed
- This class implements:
\FastForward\DevTools\License\TemplateLoaderInterface - This class is a Final class
Creates a new TemplateLoader instance.
public __construct(string|null $templatesPath = null): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$templatesPath |
string|null | Optional custom path to the templates directory |
Loads a license template file by its filename.
public load(string $templateFilename): stringParameters:
| Parameter | Type | Description |
|---|---|---|
$templateFilename |
string | The filename of the template to load (e.g., "mit.txt") |
Return Value:
The template content
Throws:
if the template file is not found