PHP Class Valet\Ubuntu

Show file Open project: cpriego/valet-ubuntu

Public Properties

Property Type Description
$cli
$files

Public Methods

Method Description
__construct ( CommandLine $cli, Filesystem $files ) : void Create a new Ubuntu instance.
ensureInstalled ( string $package ) : void Ensure that the given formula is installed.
hasInstalledPhp ( ) : boolean Determine if a compatible PHP version is installed.
installOrFail ( string $package ) : void Install the given formula and throw an exception on failure.
installed ( string $package ) : boolean Determine if the given formula is installed.
linkedPhp ( ) : string Determine which version of PHP is linked in Homebrew.
restartService ( $services ) Restart the given Homebrew services.
stopService ( $services ) Stop the given Homebrew services.

Method Details

__construct() public method

Create a new Ubuntu instance.
public __construct ( CommandLine $cli, Filesystem $files ) : void
$cli CommandLine
$files Filesystem
return void

ensureInstalled() public method

Ensure that the given formula is installed.
public ensureInstalled ( string $package ) : void
$package string
return void

hasInstalledPhp() public method

Determine if a compatible PHP version is installed.
public hasInstalledPhp ( ) : boolean
return boolean

installOrFail() public method

Install the given formula and throw an exception on failure.
public installOrFail ( string $package ) : void
$package string
return void

installed() public method

Determine if the given formula is installed.
public installed ( string $package ) : boolean
$package string
return boolean

linkedPhp() public method

Determine which version of PHP is linked in Homebrew.
public linkedPhp ( ) : string
return string

restartService() public method

Restart the given Homebrew services.
public restartService ( $services )

stopService() public method

Stop the given Homebrew services.
public stopService ( $services )

Property Details

$cli public property

public $cli

$files public property

public $files