WinterMirror

Console command to implement a "public" folder.

 class System\Console\WinterMirror
extends Illuminate\Console\Command

This command will create symbolic links to files and directories that are commonly required to be publicly available.

Extends

Properties

protected $description : mixed

The console command description.

protected $destinationPath : string | null

Local cache of the mirror destination path

protected $directories : array

Directories that should be mirrored

protected $files : array

Files that should be mirrored

protected $name : mixed

The console command name.

protected $wildcards : array

Wildcard paths that should be mirrored

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 getDestinationPath ()

Returns
mixed

protected getOptions () : array

Get the console command options.

Returns
array

protected getRelativePath ($from, $to)

Parameters
Property Description
$from
mixed
$to
mixed
Returns
mixed

protected mirror ($src, $dest)

Parameters
Property Description
$src
mixed
$dest
mixed
Returns
mixed

protected mirrorDirectory ($directory)

Parameters
Property Description
$directory
mixed
Returns
mixed

protected mirrorFile ($file)

Parameters
Property Description
$file
mixed
Returns
mixed

protected mirrorWildcard ($wildcard)

Parameters
Property Description
$wildcard
mixed
Returns
mixed
Copyright © 2024 Winter CMS