mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°4280 Handle modules with non existing model.*.php files imported (#295)
We were crashing iTop when having a module with : * in the 'datamodel' key in the module.*.php file a 'model.*.php' declared * no model.*.php file in the module sources * no model.*.php generated after compilation This behavior is improved : * if isdevenv an exception will be thrown detailing which module is concerned * else : - model.*.php won't be added in iTop datamodel autoload - a SetupLog::Error will be made
This commit is contained in:
@@ -139,7 +139,15 @@ class MFModule
|
||||
*/
|
||||
protected $sAutoSelect;
|
||||
/**
|
||||
* @var array
|
||||
* @see ModelFactory::FindModules init of this structure from the module.*.php files
|
||||
* @var array{
|
||||
* business: string[],
|
||||
* webservices: string[],
|
||||
* addons: string[],
|
||||
* }
|
||||
* Warning, there are naming mismatches between this structure and the module.*.php :
|
||||
* - `business` here correspond to `datamodel` in module.*.php
|
||||
* - `webservices` here correspond to `webservice` in module.*.php
|
||||
*/
|
||||
protected $aFilesToInclude;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user