Command

Command base class Contains utilities to make developing CLI commands nicer

abstract class Winter\Storm\Console\Command
extends Illuminate\Console\Command
implements 
    Symfony\Component\Console\Command\SignalableCommandInterface

Extends

Traits

Trait Description
HandlesCleanup

Console Command Trait that injects cross-platform signal handling to trigger cleanup on exit through the handleCleanup() method on the implementing class.

ProvidesAutocompletion

Console Command Trait that injects cross-platform signal handling to trigger cleanup on exit through the handleCleanup() method on the implementing class.

Properties

protected $laravel : Winter\Storm\Foundation\Application

protected $replaces : array

List of commands that this command replaces (aliases)

Methods

public __construct ()

Create a new command instance.

Returns
mixed

public alert (string $string, int | string | null $verbosity = null) : void

Write a string in an alert box.

Parameters
Property Description
$string
string
$verbosity
int | string | null
Returns
void

public error (string $string, int | string | null $verbosity = null) : void

Write a string as error output.

Parameters
Property Description
$string
string
$verbosity
int | string | null
Returns
void

inherited public complete (Symfony\Component\Console\Completion\CompletionInput $input, Symfony\Component\Console\Completion\CompletionSuggestions $suggestions) : void

Provide autocompletion for this command's input

Parameters
Property Description
$input
Symfony\Component\Console\Completion\CompletionInput
$suggestions
Symfony\Component\Console\Completion\CompletionSuggestions
Returns
void

inherited public getSubscribedSignals () : array

Inherited from HandlesCleanup

Returns the process signals this command listens to

Returns
array

inherited public handleSignal (integer $signal) : void

Inherited from HandlesCleanup

Handle the provided Unix process signal

Parameters
Property Description
$signal
integer
Returns
void

inherited public handleWindowsSignal (integer $event) : void

Inherited from HandlesCleanup

Handle the provided Windows process singal.

Parameters
Property Description
$event
integer
Returns
void

Extended by

Class Description
PluginDisable

Console command to disable a plugin.

PluginEnable

Console command to enable a plugin.

PluginInstall

Console command to install a new plugin.

PluginList

Console command to list existing plugins.

PluginRefresh

Console command to refresh a plugin.

PluginRemove

Console command to remove a plugin.

PluginRollback

Console command to rollback a plugin.

WinterDown

Console command to tear down the database.

WinterEnv

Console command to convert configuration to use .env files.

WinterInstall

Console command to install Winter.

WinterVersion

Detects the version of Winter CMS installed.

AssetCompile
AssetCreate
AssetInstall
AssetList
NpmRun
UserCreate
WinterPasswd

Console command to change the password of a Backend user via CLI.

ThemeInstall

Console command to install a new theme.

ThemeList

Console command to list themes.

ThemeRemove

Console command to remove a theme.

ThemeSync

Console command to sync a theme between the DB and Filesystem layers.

ThemeUse

Console command to switch themes.

GeneratorCommand

Generator command.

Copyright © 2024 Winter CMS