PHP Класс PhpBrew\Extension\ExtensionManager

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$logger

Защищенные свойства (Protected)

Свойство Тип Описание
$conflicts array This helps phpbrew to unload antagonist extensions before enabling an extension with a known conflict.

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

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

cleanExtension() публичный Метод

public cleanExtension ( Extension $ext )
$ext Extension

createExtensionConfig() публичный Метод

public createExtensionConfig ( Extension $ext )
$ext Extension

disable() публичный Метод

public disable ( $extensionName )

disableAntagonists() публичный Метод

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

disableExtension() публичный Метод

Disables ini file for current extension.
public disableExtension ( Extension $ext ) : boolean
$ext Extension
Результат boolean

enable() публичный Метод

public enable ( $extensionName )

enableExtension() публичный Метод

Enables ini file for current extension.
public enableExtension ( Extension $ext ) : boolean
$ext Extension
Результат boolean

hasConflicts() публичный Метод

public hasConflicts ( Extension $ext )
$ext Extension

installExtension() публичный Метод

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 purgeExtension ( Extension $ext )
$ext Extension

Описание свойств

$conflicts защищенное свойство

This helps phpbrew to unload antagonist extensions before enabling an extension with a known conflict.
protected array $conflicts
Результат array

$logger публичное свойство

public $logger