PHP Class PhpBrew\Extension\ExtensionManager

Datei anzeigen Open project: phpbrew/phpbrew Class Usage Examples

Public Properties

Property Type Description
$logger

Protected Properties

Property Type Description
$conflicts array This helps phpbrew to unload antagonist extensions before enabling an extension with a known conflict.

Public Methods

Method Description
__construct ( CLIFramework\Logger $logger )
cleanExtension ( Extension $ext )
createExtensionConfig ( Extension $ext )
disable ( $extensionName )
disableAntagonists ( Extension $ext ) Disable extensions known to conflict with current one.
disableExtension ( Extension $ext ) : boolean Disables ini file for current extension.
enable ( $extensionName )
enableExtension ( Extension $ext ) : boolean Enables ini file for current extension.
hasConflicts ( Extension $ext )
installExtension ( Extension $ext, array $options = [] ) Whenever you call this method, you shall have already downloaded the extension And have set the source directory on the Extension object.
purgeExtension ( Extension $ext )

Method Details

__construct() public method

public __construct ( CLIFramework\Logger $logger )
$logger CLIFramework\Logger

cleanExtension() public method

public cleanExtension ( Extension $ext )
$ext Extension

createExtensionConfig() public method

public createExtensionConfig ( Extension $ext )
$ext Extension

disable() public method

public disable ( $extensionName )

disableAntagonists() public method

Disable extensions known to conflict with current one.
public disableAntagonists ( Extension $ext )
$ext Extension

disableExtension() public method

Disables ini file for current extension.
public disableExtension ( Extension $ext ) : boolean
$ext Extension
return boolean

enable() public method

public enable ( $extensionName )

enableExtension() public method

Enables ini file for current extension.
public enableExtension ( Extension $ext ) : boolean
$ext Extension
return boolean

hasConflicts() public method

public hasConflicts ( Extension $ext )
$ext Extension

installExtension() public method

Whenever you call this method, you shall have already downloaded the extension And have set the source directory on the Extension object.
public installExtension ( Extension $ext, array $options = [] )
$ext Extension
$options array

purgeExtension() public method

public purgeExtension ( Extension $ext )
$ext Extension

Property Details

$conflicts protected_oe property

This helps phpbrew to unload antagonist extensions before enabling an extension with a known conflict.
protected array $conflicts
return array

$logger public_oe property

public $logger