HandlesCleanup

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

 trait Winter\Storm\Console\Traits\HandlesCleanup

NOTE: This trait requires the implementing class to implement the Symfony\Component\Console\Command\SignalableCommandInterface interface

Methods

public getSubscribedSignals () : array

Returns the process signals this command listens to

Returns
array

public handleSignal (integer $signal) : void

Handle the provided Unix process signal

Parameters
Property Description
$signal
integer
Returns
void

public handleWindowsSignal (integer $event) : void

Handle the provided Windows process singal.

Parameters
Property Description
$event
integer
Returns
void

Used by

Class Description
BaseScaffoldCommand
CreateCommand
CreateJob
CreateMigration

Scaffolds a new migration file

CreateModel
CreatePlugin
CreateSettings
CreateTest
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
NpmUpdate
MixCompile
MixCreate
MixInstall
MixList
MixWatch
ViteCompile
ViteCreate
ViteInstall
ViteList
ViteWatch
CreateController
CreateFormWidget
CreateReportWidget
UserCreate
WinterPasswd

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

CreateComponent
CreateTheme
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.

Command

Command base class Contains utilities to make developing CLI commands nicer

GeneratorCommand

Generator command.

Copyright © 2024 Winter CMS