PHP Class Efficiently\Larasset\Commands\BaseCommand

Inheritance: extends Illuminate\Console\Command
Show file Open project: efficiently/larasset Class Usage Examples

Protected Properties

Property Type Description
$envs

Public Methods

Method Description
fire ( ) : mixed Execute the console command.

Protected Methods

Method Description
hasLarassetJs ( ) : boolean Does user have larasset-js module installed?
hasNode ( ) : boolean Does user have Node.js installed?
hasNpm ( ) : boolean Does user have Npm installed?
normalizePath ( string $path ) : string Windows platform support: Convert backslash to slash
packagePath ( ) : string Returns package absolute path
useWindows ( ) : boolean Check if the PHP server is under Windows Operating System

Method Details

fire() public method

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

hasLarassetJs() protected method

Does user have larasset-js module installed?
protected hasLarassetJs ( ) : boolean
return boolean

hasNode() protected method

Does user have Node.js installed?
protected hasNode ( ) : boolean
return boolean

hasNpm() protected method

Does user have Npm installed?
protected hasNpm ( ) : boolean
return boolean

normalizePath() protected method

Windows platform support: Convert backslash to slash
protected normalizePath ( string $path ) : string
$path string
return string

packagePath() protected method

Returns package absolute path
protected packagePath ( ) : string
return string

useWindows() protected method

Check if the PHP server is under Windows Operating System
protected useWindows ( ) : boolean
return boolean

Property Details

$envs protected property

protected $envs