class Install extends Command (View source)

Traits

Properties

protected $exitCode from  Command
protected string $signature

The name and signature of the console command.

protected string $description

The console command description.

Methods

__call($method, $parameters)

No description

from  Command
handle()

Executes the console command.

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.

__construct(Filesystem $files, DatabaseManager $db)

No description

Details

__call($method, $parameters)

No description

Parameters

$method
$parameters

handle()

Executes the console command.

Exceptions

FileNotFoundException

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

__construct(Filesystem $files, DatabaseManager $db)

No description

Parameters

Filesystem $files
DatabaseManager $db