PHP Class Valet\Valet

Mostrar archivo Open project: laravel/valet

Public Properties

Property Type Description
$cli
$files
$valetBin

Public Methods

Method Description
__construct ( CommandLine $cli, Filesystem $files ) Create a new Valet instance.
createSudoersEntry ( ) : void Create the "sudoers.d" entry for running Valet.
extensions ( ) : array Get the paths to all of the Valet extensions.
onLatestVersion ( string $currentVersion ) : boolean Determine if this is the latest version of Valet.
symlinkToUsersBin ( ) : void Symlink the Valet Bash script into the user's local bin.

Method Details

__construct() public method

Create a new Valet instance.
public __construct ( CommandLine $cli, Filesystem $files )
$cli CommandLine
$files Filesystem

createSudoersEntry() public method

Create the "sudoers.d" entry for running Valet.
public createSudoersEntry ( ) : void
return void

extensions() public method

Get the paths to all of the Valet extensions.
public extensions ( ) : array
return array

onLatestVersion() public method

Determine if this is the latest version of Valet.
public onLatestVersion ( string $currentVersion ) : boolean
$currentVersion string
return boolean

symlinkToUsersBin() public method

Symlink the Valet Bash script into the user's local bin.
public symlinkToUsersBin ( ) : void
return void

Property Details

$cli public_oe property

public $cli

$files public_oe property

public $files

$valetBin public_oe property

public $valetBin