CreateExampleCommand
class CreateExampleCommand extends Command (View source)
Traits
Properties
protected | $signature | ||
protected | $description |
Methods
void
installPresetFiles(string $preset, bool $fromTests = false, string|null $basePath = null)
No description
from
HandlesPresets
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.
from
HandlesPresets
void
handle()
No description
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()
;
void
handle()
No description