Property | Type | Description | |
---|---|---|---|
$moduleManager | Zend\ModuleManager\ModuleManager | ||
$modules | array | ||
$restConfig | array | ||
$rpcConfig | array | ||
$services | array | Services for each module | |
$useShortArrayNotation | boolean | ||
$valueGenerator |
Method | Description | |
---|---|---|
__construct ( Zend\ModuleManager\ModuleManager $moduleManager, array $restConfig, array $rpcConfig ) | ||
createModule ( string $module, |
Create a module | |
deleteModule ( string $module, string $path = '.', boolean $recursive = false ) : boolean | Delete an existing module | |
exportConfig ( array $config, integer $indent ) : string | Export the $config array in a human readable format | |
getModule ( string $moduleName ) : null | |
||
getModules ( ) : |
Retrieve modules | |
setUseShortArrayNotation ( $flag = true ) : void | Set the flag indicating whether or not generated config files should use short array notation. | |
updateModule ( string $module ) : boolean | Update a module (adding the ApigilityModule interface) |
Method | Description | |
---|---|---|
discoverServicesByModule ( string $module, array $config ) : array | Loops through an array of controllers, determining which match the given module. | |
getEnabledModules ( ) : array | Returns list of all API-First-enabled modules | |
getModuleDefaultVersion ( ZF\Apigility\ApigilityModuleInterface | ZF\Apigility\Provider\ApigilityProviderInterface $module ) : integer | Retrieves the configured default version for the specified module. | |
getServicesByModule ( string $module ) : null | array | Retrieve all services for a given module | |
getVersionsByModule ( string $moduleName, ZF\Apigility\Provider\ApigilityProviderInterface | ZF\Apigility\ApigilityModuleInterface $module ) : array | Retrieve versions by module | |
writeApplicationConfig ( array $application, string $path ) : boolean | Write application configuration. | |
writeConfigFile ( array $config, string $configFile ) : boolean | Write a configuration file. |
Method | Description | |
---|---|---|
detectSourcePathFromModule ( string $moduleName, ZF\Apigility\Provider\ApigilityProviderInterface | ZF\Apigility\ApigilityModuleInterface $module ) : string | Determine where the source path is for a module. |
public __construct ( Zend\ModuleManager\ModuleManager $moduleManager, array $restConfig, array $rpcConfig ) | ||
$moduleManager | Zend\ModuleManager\ModuleManager | |
$restConfig | array | |
$rpcConfig | array |
public createModule ( string $module, |
||
$module | string | |
$pathSpec | ||
return | boolean |
protected getEnabledModules ( ) : array | ||
return | array |
protected getModuleDefaultVersion ( ZF\Apigility\ApigilityModuleInterface | ZF\Apigility\Provider\ApigilityProviderInterface $module ) : integer | ||
$module | ZF\Apigility\ApigilityModuleInterface | ZF\Apigility\Provider\ApigilityProviderInterface | |
return | integer |
public getModules ( ) : |
||
return |
protected getVersionsByModule ( string $moduleName, ZF\Apigility\Provider\ApigilityProviderInterface | ZF\Apigility\ApigilityModuleInterface $module ) : array | ||
$moduleName | string | |
$module | ZF\Apigility\Provider\ApigilityProviderInterface | ZF\Apigility\ApigilityModuleInterface | |
return | array |
public setUseShortArrayNotation ( $flag = true ) : void | ||
return | void |
public updateModule ( string $module ) : boolean | ||
$module | string | |
return | boolean |
protected ModuleManager,Zend\ModuleManager $moduleManager | ||
return | Zend\ModuleManager\ModuleManager |
protected static bool $useShortArrayNotation | ||
return | boolean |