PHP Class Laravelista\LumenVendorPublish\VendorPublishCommand

Inheritance: extends Illuminate\Console\Command
Mostra file Open project: basicit/lumen-vendor-publish

Protected Properties

Property Type Description
$description string The console command description.
$files Illuminate\Filesystem\Filesystem The filesystem instance.
$signature string The console command signature.

Public Methods

Method Description
__construct ( Illuminate\Filesystem\Filesystem $files ) : void Create a new command instance.
fire ( ) : void Execute the console command.

Protected Methods

Method Description
createParentDirectory ( string $directory ) : void Create the directory to house the published files if needed.
publishDirectory ( string $from, string $to ) : void Publish the directory to the given directory.
publishFile ( string $from, string $to ) : void Publish the file to the given path.
status ( string $from, string $to, string $type ) : void Write a status message to the console.

Private Methods

Method Description
publishTag ( string $tag ) : mixed Publishes the assets for a tag.

Method Details

__construct() public method

Create a new command instance.
public __construct ( Illuminate\Filesystem\Filesystem $files ) : void
$files Illuminate\Filesystem\Filesystem
return void

createParentDirectory() protected method

Create the directory to house the published files if needed.
protected createParentDirectory ( string $directory ) : void
$directory string
return void

fire() public method

Execute the console command.
public fire ( ) : void
return void

publishDirectory() protected method

Publish the directory to the given directory.
protected publishDirectory ( string $from, string $to ) : void
$from string
$to string
return void

publishFile() protected method

Publish the file to the given path.
protected publishFile ( string $from, string $to ) : void
$from string
$to string
return void

status() protected method

Write a status message to the console.
protected status ( string $from, string $to, string $type ) : void
$from string
$to string
$type string
return void

Property Details

$description protected_oe property

The console command description.
protected string $description
return string

$files protected_oe property

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
return Illuminate\Filesystem\Filesystem

$signature protected_oe property

The console command signature.
protected string $signature
return string