HandlesPresets
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
publishConfig()
;
Details
protected bool
presetExists(string $preset)
No description
protected void
generateExampleFromGit(string $preset)
No description
protected void
installPresetFiles(string $preset, bool $fromTests = false, string|null $basePath = null)
No description
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.
void
publishConfig()
;