WinterUtil
Console command for other utility commands.
class System\Console\WinterUtil
extends Illuminate\Console\Command
This provides functionality that doesn't quite deserve its own dedicated console class. It is used mostly developer tools and maintenance tasks.
Currently supported commands:
- purge thumbs: Deletes all thumbnail files in the uploads directory.
- git pull: Perform "git pull" on all plugins and themes.
- compile assets: Compile registered Language, LESS and JS files.
- compile js: Compile registered JS files only.
- compile less: Compile registered LESS files only.
- compile scss: Compile registered SCSS files only.
- compile lang: Compile registered Language files only.
- set project --projectId=
: Set the projectId for this winter instance.
Extends
Class | Description |
---|---|
Illuminate\Console\Command
|
Traits
Trait | Description |
---|---|
Illuminate\Console\ConfirmableTrait
|
Properties
protected
$description
:
mixed
= "Utility commands for Winter"
The console command description.
protected
$name
:
mixed
= "winter:util"
The console command name.
Methods
public __construct ()
Create a new command instance.
Returns
mixed
public handle ()
Execute the console command.
Returns
mixed
protected getArguments () : array
Get the console command arguments.
Returns
array
protected getOptions () : array
Get the console command options.
Returns
array
protected
utilCompileAssets ($type = null
)
Parameters
Property | Type | Description |
---|---|---|
$type | mixed |
mixed
|
Returns
mixed
protected utilCompileJs ()
Returns
mixed
protected utilCompileLang ()
Returns
mixed
protected utilCompileLess ()
Returns
mixed
protected utilCompileScss ()
Returns
mixed
protected utilGitPull ()
This command requires the git binary to be installed.
Returns
mixed
protected utilPurgeOrphans ()
Returns
mixed
protected utilPurgeThumbs ()
Returns
mixed
protected utilPurgeUploads ()
Returns
mixed
protected utilSetBuild ()
Returns
mixed
protected utilSetProject ()
Returns
mixed
Copyright © 2024 Winter CMS