PHP Class Rocketeer\Strategies\Check\PhpStrategy

Inheritance: extends Rocketeer\Abstracts\Strategies\AbstractCheckStrategy, implements Rocketeer\Interfaces\Strategies\CheckStrategyInterface
Show file Open project: anahkiasen/rocketeer

Protected Properties

Property Type Description
$description
$extensions The PHP extensions loaded on server.
$language The language of the strategy.

Public Methods

Method Description
__construct ( Illuminate\Container\Container $app )
checkCacheDriver ( string $cache ) : boolean | string Check the presence of the correct cache PHP extension.
checkDatabaseDriver ( string $database ) : boolean Check the presence of the correct database PHP extension.
checkPhpExtension ( string $extension ) : boolean Check the presence of a PHP extension.
drivers ( ) : array Check for the required drivers.
extensions ( ) : array Check for the required extensions.

Protected Methods

Method Description
getCurrentVersion ( ) : string Get the current version in use.
getLanguageConstraint ( string $manifest ) : string Get the version constraint which should be checked against.

Private Methods

Method Description
getRequiredExtensionsFromComposer ( ) : array

Method Details

__construct() public method

public __construct ( Illuminate\Container\Container $app )
$app Illuminate\Container\Container

checkCacheDriver() public method

Check the presence of the correct cache PHP extension.
public checkCacheDriver ( string $cache ) : boolean | string
$cache string
return boolean | string

checkDatabaseDriver() public method

Check the presence of the correct database PHP extension.
public checkDatabaseDriver ( string $database ) : boolean
$database string
return boolean

checkPhpExtension() public method

Check the presence of a PHP extension.
public checkPhpExtension ( string $extension ) : boolean
$extension string The extension
return boolean

drivers() public method

Check for the required drivers.
public drivers ( ) : array
return array

extensions() public method

Check for the required extensions.
public extensions ( ) : array
return array

getCurrentVersion() protected method

Get the current version in use.
protected getCurrentVersion ( ) : string
return string

getLanguageConstraint() protected method

Get the version constraint which should be checked against.
protected getLanguageConstraint ( string $manifest ) : string
$manifest string
return string

Property Details

$description protected property

protected $description

$extensions protected property

The PHP extensions loaded on server.
protected $extensions

$language protected property

The language of the strategy.
protected $language