Method | Description | |
---|---|---|
__construct ( string | null $moduleName = null, string | null $path = null, Puli\Manager\Api\Config\Config $baseConfig = null ) | Creates a new root module file. | |
addInstallInfo ( Puli\Manager\Api\Module\InstallInfo $installInfo ) | Adds install info for an installed module. | |
addPluginClass ( string $pluginClass ) | Adds a plugin class. | |
addPluginClasses ( array $pluginClasses ) | Adds multiple plugin classes. | |
clearInstallInfos ( ) | Removes all install infos. | |
clearPluginClasses ( ) | Removes all plugin classes. | |
getConfig ( ) : Puli\Manager\Api\Config\Config | Returns the configuration of the module. | |
getInstallInfo ( string $moduleName ) : Puli\Manager\Api\Module\InstallInfo | Returns the install info of an installed module. | |
getInstallInfos ( ) : Puli\Manager\Api\Module\InstallInfo[] | Returns the install infos of all installed modules. | |
getModuleOrder ( ) : string[] | Returns the order in which modules should be loaded. | |
getPluginClasses ( ) : string[] | Returns the plugin classes. | |
hasInstallInfo ( string $moduleName ) : boolean | Returns whether an install info with a given name exists. | |
hasInstallInfos ( ) : boolean | Returns whether the module file contains any install infos. | |
hasPluginClass ( string $pluginClass ) : boolean | Returns whether the configuration contains a plugin class. | |
hasPluginClasses ( ) : boolean | Returns whether the configuration contains any plugin classes. | |
removeInstallInfo ( string $moduleName ) | Removes the install info of an installed module. | |
removePluginClass ( string $pluginClass ) | Removes a plugin class. | |
setInstallInfos ( array $installInfos ) | Sets the install infos of all installed modules. | |
setModuleOrder ( array $moduleOrder ) | Sets the order in which modules should be loaded. | |
setPluginClasses ( array $pluginClasses ) | Sets the plugin classes. |
public __construct ( string | null $moduleName = null, string | null $path = null, Puli\Manager\Api\Config\Config $baseConfig = null ) | ||
$moduleName | string | null | The module name. Optional. |
$path | string | null | The path where the configuration is stored or `null` if this configuration is not stored on the file system. |
$baseConfig | Puli\Manager\Api\Config\Config | The configuration that the module will inherit its configuration values from. |
public addInstallInfo ( Puli\Manager\Api\Module\InstallInfo $installInfo ) | ||
$installInfo | Puli\Manager\Api\Module\InstallInfo | The install info. |
public addPluginClass ( string $pluginClass ) | ||
$pluginClass | string | The fully qualified plugin class name. |
public addPluginClasses ( array $pluginClasses ) | ||
$pluginClasses | array | The fully qualified plugin class names. |
public getConfig ( ) : Puli\Manager\Api\Config\Config | ||
return | Puli\Manager\Api\Config\Config | The configuration. |
public getInstallInfo ( string $moduleName ) : Puli\Manager\Api\Module\InstallInfo | ||
$moduleName | string | The module name. |
return | Puli\Manager\Api\Module\InstallInfo | The install info. |
public getInstallInfos ( ) : Puli\Manager\Api\Module\InstallInfo[] | ||
return | Puli\Manager\Api\Module\InstallInfo[] | The install infos. |
public getModuleOrder ( ) : string[] | ||
return | string[] | A list of module names. |
public getPluginClasses ( ) : string[] | ||
return | string[] | The fully qualified plugin class names. |
public hasInstallInfo ( string $moduleName ) : boolean | ||
$moduleName | string | The name of the module. |
return | boolean | Whether install info with that name exists. |
public hasInstallInfos ( ) : boolean | ||
return | boolean | Returns `true` if the file contains install infos and `false` otherwise. |
public hasPluginClass ( string $pluginClass ) : boolean | ||
$pluginClass | string | The fully qualified plugin class name. |
return | boolean | Whether the configuration contains the plugin class. |
public hasPluginClasses ( ) : boolean | ||
return | boolean | Whether the configuration contains any plugin classes. |
public removeInstallInfo ( string $moduleName ) | ||
$moduleName | string | The module name. |
public removePluginClass ( string $pluginClass ) | ||
$pluginClass | string | The fully qualified plugin class name. |
public setInstallInfos ( array $installInfos ) | ||
$installInfos | array |
public setModuleOrder ( array $moduleOrder ) | ||
$moduleOrder | array | A list of module names. |
public setPluginClasses ( array $pluginClasses ) | ||
$pluginClasses | array | The fully qualified plugin class names. |