trait HandlesPresets (View source)

Methods

bool
presetExists(string $preset)

No description

void
generateExampleFromGit(string $preset)

No description

void
installPresetFiles(string $preset, bool $fromTests = false, string|null $basePath = null)

No description

void
updatePreset(string $preset)

This method reverses the process. It goes over all the files in the example and copies them from the project to the twill examples folder. If you have new files you need to manually copy them once.

void

Details

protected bool presetExists(string $preset)

No description

Parameters

string $preset

Return Value

bool

protected void generateExampleFromGit(string $preset)

No description

Parameters

string $preset

Return Value

void

protected void installPresetFiles(string $preset, bool $fromTests = false, string|null $basePath = null)

No description

Parameters

string $preset
bool $fromTests
string|null $basePath

Return Value

void

protected void updatePreset(string $preset)

This method reverses the process. It goes over all the files in the example and copies them from the project to the twill examples folder. If you have new files you need to manually copy them once.

This is useful for developing examples as you can install it, update it, then copy it back.

Parameters

string $preset

Return Value

void

void publishConfig()

;

Return Value

void