PHP Class PhpBrew\Extension\ExtensionManager

Afficher le fichier Open project: phpbrew/phpbrew Class Usage Examples

Méthodes publiques

Свойство Type Description
$logger

Protected Properties

Свойство Type Description
$conflicts array This helps phpbrew to unload antagonist extensions before enabling an extension with a known conflict.

Méthodes publiques

Méthode 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 méthode

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

cleanExtension() public méthode

public cleanExtension ( Extension $ext )
$ext Extension

createExtensionConfig() public méthode

public createExtensionConfig ( Extension $ext )
$ext Extension

disable() public méthode

public disable ( $extensionName )

disableAntagonists() public méthode

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

disableExtension() public méthode

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

enable() public méthode

public enable ( $extensionName )

enableExtension() public méthode

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

hasConflicts() public méthode

public hasConflicts ( Extension $ext )
$ext Extension

installExtension() public méthode

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 méthode

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
Résultat array

$logger public_oe property

public $logger