diff --git a/datamodels/2.x/combodo-data-feature-removal/.idea/combodo-data-feature-removal.iml b/datamodels/2.x/combodo-data-feature-removal/.idea/combodo-data-feature-removal.iml new file mode 100644 index 000000000..470b5f4cf --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/.idea/combodo-data-feature-removal.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/datamodels/2.x/combodo-data-feature-removal/.idea/modules.xml b/datamodels/2.x/combodo-data-feature-removal/.idea/modules.xml new file mode 100644 index 000000000..bbf566650 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/datamodels/2.x/combodo-data-feature-removal/.idea/php.xml b/datamodels/2.x/combodo-data-feature-removal/.idea/php.xml new file mode 100644 index 000000000..53993796b --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/.idea/php.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/datamodels/2.x/combodo-data-feature-removal/.idea/vcs.xml b/datamodels/2.x/combodo-data-feature-removal/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/datamodels/2.x/combodo-data-feature-removal/.idea/workspace.xml b/datamodels/2.x/combodo-data-feature-removal/.idea/workspace.xml new file mode 100644 index 000000000..39204c55c --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/.idea/workspace.xml @@ -0,0 +1,53 @@ + + + + + + + + + $PROJECT_DIR$/composer.json + + + + + + + + + + + + { + "customColor": "", + "associatedIndex": 1 +} + + + + + + + + + \ No newline at end of file diff --git a/datamodels/2.x/combodo-data-feature-removal/assets/css/DataFeatureRemoval.css b/datamodels/2.x/combodo-data-feature-removal/assets/css/DataFeatureRemoval.css new file mode 100644 index 000000000..0005c5a7a --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/assets/css/DataFeatureRemoval.css @@ -0,0 +1,9 @@ +/* + * @copyright Copyright (C) 2010-2025 Combodo SARL + * @license http://opensource.org/licenses/AGPL-3.0 + */ + +/* + * CSS of the template page + */ + diff --git a/datamodels/2.x/combodo-data-feature-removal/assets/img/.gitkeep b/datamodels/2.x/combodo-data-feature-removal/assets/img/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/datamodels/2.x/combodo-data-feature-removal/assets/js/DataFeatureRemoval.js b/datamodels/2.x/combodo-data-feature-removal/assets/js/DataFeatureRemoval.js new file mode 100644 index 000000000..42e438c5e --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/assets/js/DataFeatureRemoval.js @@ -0,0 +1,9 @@ +/* + * @copyright Copyright (C) 2010-2025 Combodo SARL + * @license http://opensource.org/licenses/AGPL-3.0 + */ + +/* + * Javascript file loaded in template page + */ + diff --git a/datamodels/2.x/combodo-data-feature-removal/composer.json b/datamodels/2.x/combodo-data-feature-removal/composer.json new file mode 100644 index 000000000..4640f253f --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/composer.json @@ -0,0 +1,17 @@ +{ + "config": { + "classmap-authoritative": true + }, + "autoload": { + "psr-4": { + "Combodo\\iTop\\DataFeatureRemoval\\": "src", + "": "src/NoNamespace" + } + }, + "name": "combodo/combodo-data-feature-removal", + "type": "itop-extension", + "description": "iTop Data Feature Removal", + "require": { + "composer-runtime-api": "^2.0" + } +} \ No newline at end of file diff --git a/datamodels/2.x/combodo-data-feature-removal/datamodel.combodo-data-feature-removal.xml b/datamodels/2.x/combodo-data-feature-removal/datamodel.combodo-data-feature-removal.xml new file mode 100644 index 000000000..d162e5827 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/datamodel.combodo-data-feature-removal.xml @@ -0,0 +1,163 @@ + + + + + + grant_by_profile + data_feature_removal_extension + + + + + + + + + + + + + extension_code + false + all + + + label + false + all + + + version + false + all + + + module_names + false + all + + + status + none + true + all + + + + + + + 10 + + + 20 + + + + + + 10 + + + 20 + + +
+ + 10 + + + 20 + +
+
+ +
+ + + grant_by_profile + data_feature_removal_auditrule + + + + + + + + + + + + + + + rule_name + false + all + + + extension_code + false + all + + + class_name + none + true + all + + + count + 0 + all + + + + + + + 10 + + + 20 + + + 30 + + + + + + 10 + + + 20 + + + 30 + + +
+ + 10 + + + 20 + + + 30 + +
+
+ +
+
+ + + 30 + SystemTools + $pages/exec.php?exec_module=combodo-data-feature-removal&exec_page=index.php&c[menu]=DataFeatureRemovalMenu + 1 + + +
diff --git a/datamodels/2.x/combodo-data-feature-removal/dictionaries/en.dict.combodo-data-feature-removal.php b/datamodels/2.x/combodo-data-feature-removal/dictionaries/en.dict.combodo-data-feature-removal.php new file mode 100644 index 000000000..663746848 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/dictionaries/en.dict.combodo-data-feature-removal.php @@ -0,0 +1,41 @@ + 'Features Removal', + 'combodo-data-feature-removal/Operation:Main/Title' => 'Features Removal', + + 'DataFeatureRemoval:Main:Title' => 'Features Removal', + 'DataFeatureRemoval:Main:SubTitle' => 'Prepare features you want to enable/disable in a future setup', + 'DataFeatureRemoval:Failure:Title' => 'Feature dry removal errors', + 'DataFeatureRemoval:Helper:Title' => 'This utilitary allows you to enable or disable features that are installed in your iTop.', + 'DataFeatureRemoval:Helper:Desc1' => 'It will prepare the setup step that proceeds to feature enabling or disabling.', + 'DataFeatureRemoval:Helper:Desc2' => 'You will need to analyze if there are any data or dependency preventing you from enabling/disabling a feature.', + + 'DataFeatureRemoval:Features:Title' => 'Features', + 'DataFeatureRemoval:Analysis:Title' => 'Analysis result', + 'DataFeatureRemoval:Analysis:SubTitle' => '%1$s element(s) to clean before continuing', + + 'DataFeatureRemoval:Table:Analysis:ClassName' => 'Element to remove', + 'DataFeatureRemoval:Table:Analysis:RemovalType' => 'Type of element', + 'DataFeatureRemoval:Table:Analysis:FeatureName' => 'Feature name', + 'DataFeatureRemoval:Table:Analysis:Occurence' => 'Occurence', + + 'UI:Button:Analyze' => 'Analyze', + 'UI:Button:ModifyChoices' => 'Modify Choices', + 'UI:Button:AnalyzeAndSetup' => 'Analyze and go to setup', + + 'UI:Action:ForceUninstall' => 'Force uninstall', + 'UI:Action:MoreInfo' => 'More information', + + 'DataFeatureRemoval:Table:Analysis:RemovalType:FINAL_CLASS' => 'Final class', + + ]); diff --git a/datamodels/2.x/combodo-data-feature-removal/dictionaries/fr.dict.combodo-data-feature-removal.php b/datamodels/2.x/combodo-data-feature-removal/dictionaries/fr.dict.combodo-data-feature-removal.php new file mode 100644 index 000000000..a722d7d39 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/dictionaries/fr.dict.combodo-data-feature-removal.php @@ -0,0 +1,40 @@ + 'Features Removal', + 'combodo-data-feature-removal/Operation:Main/Title' => 'Features Removal', + + 'DataFeatureRemoval:Main:Title' => 'Features Removal', + 'DataFeatureRemoval:Main:SubTitle' => 'Prepare features you want to enable/disable in a future setup', + 'DataFeatureRemoval:Failure:Title' => 'Feature dry removal errors', + 'DataFeatureRemoval:Helper:Title' => 'This utilitary allows you to enable or disable features that are installed in your iTop.', + 'DataFeatureRemoval:Helper:Desc1' => 'It will prepare the setup step that proceeds to feature enabling or disabling.', + 'DataFeatureRemoval:Helper:Desc2' => 'You will need to analyze if there are any data or dependency preventing you from enabling/disabling a feature.', + + 'DataFeatureRemoval:Features:Title' => 'Features', + 'DataFeatureRemoval:Analysis:Title' => 'Analysis result', + 'DataFeatureRemoval:Analysis:SubTitle' => '%1$s element(s) to clean before continuing', + + 'DataFeatureRemoval:Table:Analysis:ClassName' => 'Element to remove', + 'DataFeatureRemoval:Table:Analysis:RemovalType' => 'Type of element', + 'DataFeatureRemoval:Table:Analysis:FeatureName' => 'Feature name', + 'DataFeatureRemoval:Table:Analysis:Occurence' => 'Occurence', + + 'UI:Button:Analyze' => 'Analyze', + 'UI:Button:ModifyChoices' => 'Modify Choices', + 'UI:Button:AnalyzeAndSetup' => 'Analyze and go to setup', + + 'UI:Action:ForceUninstall' => 'Force uninstall', + 'UI:Action:MoreInfo' => 'More information', + + 'DataFeatureRemoval:Table:Analysis:RemovalType:FINAL_CLASS' => 'Final class', +]); diff --git a/datamodels/2.x/combodo-data-feature-removal/index.php b/datamodels/2.x/combodo-data-feature-removal/index.php new file mode 100644 index 000000000..4dd3f0cae --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/index.php @@ -0,0 +1,20 @@ +SetDefaultOperation('Main'); +$oController->HandleOperation(); diff --git a/datamodels/2.x/combodo-data-feature-removal/model.combodo-data-feature-removal.php b/datamodels/2.x/combodo-data-feature-removal/model.combodo-data-feature-removal.php new file mode 100644 index 000000000..e8140fa29 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/model.combodo-data-feature-removal.php @@ -0,0 +1,16 @@ + 'iTop Data Feature Removal', + 'category' => 'business', + + // Setup + // + 'dependencies' => [ + + ], + 'mandatory' => true, + 'visible' => false, + + // Components + // + 'datamodel' => [ + 'vendor/autoload.php', + 'model.combodo-data-feature-removal.php', // Contains the PHP code generated by the "compilation" of datamodel.combodo-data-feature-removal.xml + ], + 'webservice' => [], + 'data.struct' => [ + // add your 'structure' definition XML files here, + ], + 'data.sample' => [ + // add your sample data XML files here, + ], + + // Documentation + // + 'doc.manual_setup' => '', // hyperlink to manual setup documentation, if any + 'doc.more_information' => '', // hyperlink to more information, if any + + // Default settings + // + 'settings' => [ + // Module specific settings go here, if any + ], + ] +); diff --git a/datamodels/2.x/combodo-data-feature-removal/src/Controller/DataFeatureRemovalController.php b/datamodels/2.x/combodo-data-feature-removal/src/Controller/DataFeatureRemovalController.php new file mode 100644 index 000000000..3bc225e1d --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/src/Controller/DataFeatureRemovalController.php @@ -0,0 +1,189 @@ +AddLinkedStylesheet(utils::GetAbsoluteUrlModulesRoot().DataFeatureRemovalHelper::MODULE_NAME.'/assets/css/DataFeatureRemoval.css'); + $this->AddLinkedScript(utils::GetAbsoluteUrlModulesRoot().DataFeatureRemovalHelper::MODULE_NAME.'/assets/js/DataFeatureRemoval.js'); + + $aParams['sTransactionId'] = utils::GetNewTransactionId(); + $this->AddFeatureParams($aParams); + $this->AddAnalyzeParams($aParams); + $aParams['DataFeatureRemovalErrorMessage'] = $sErrorMessage; + $this->DisplayPage($aParams); + } + + public function AddFeatureParams(array &$aParams) + { + $aParams['aExtensions'] = $this->GetExtensionsTable(); + $aParams['sModule'] = DataFeatureRemovalHelper::MODULE_NAME; + } + + public function AddAnalyzeParams(array &$aParams) + { + $iTotalCount = 0; + $aData = []; + $aColumns = []; + foreach (DataFeatureRemoverAuditRuleService::GetInstance()->ReadCheckRules() as $oRule) { + $sContent = $oRule->Get('class_name'); + $sModuleName = MetaModel::GetModuleName($sContent); + $aExtensions = DataFeatureRemoverExtensionService::GetInstance()->GetIncludingExtensions($sModuleName); + $sExtensions = implode(' ', $aExtensions); + $sTypeName = $oRule->Get('rule_name'); + $sTypeDesc = \Dict::S("DataFeatureRemoval:Table:Analysis:RemovalType:$sTypeName"); + $iCount = $oRule->Get('count'); + $iTotalCount += $iCount; + $aColumns = ['ClassName', 'RemovalType','FeatureName','Occurence']; + $aData[] = [ + <<$sContent +HTML, + <<$sTypeDesc +HTML, + <<$sExtensions +HTML, + <<$iCount +HTML, + ]; + } + + $aParams['aCheckRules'] = $this->GetTableData('Analysis', $aColumns, $aData); + $aParams['rule_count'] = $iTotalCount; + } + + public function OperationAnalyze() + { + $aSelectedExtensionsFromUI = utils::ReadPostedParam('aExtensions', []); + $this->aSelectedExtensionsForCheck = []; + foreach ($aSelectedExtensionsFromUI as $sCode => $aData) { + $sValue = $aData['enable'] ?? 'off'; + if (($sValue) === 'on') { + $this->aSelectedExtensionsForCheck[] = $sCode; + } + } + + $this->m_sOperation = 'Main'; + + try { + $this->Analyze(); + $this->OperationMain(); + } catch (Exception $e) { + \IssueLog::Error(__METHOD__, null, ['stack' => $e->getTraceAsString(), 'exception' => $e->getMessage()]); + $this->OperationMain($e->getMessage()); + } + } + + private function GetExtensionsTable(): array + { + $aExtensions = []; + $aColumns = ['', 'Version', 'Name', 'Code']; + $this->aSelectedExtensionsForCheck = DataFeatureRemoverExtensionService::GetInstance()->ReadAuditedExtensions(); + + foreach (DataFeatureRemoverExtensionService::GetInstance()->ReadItopExtensions() as $sCode => $oExtension) { + /** @var \iTopExtension $oExtension */ + + $sChecked = "checked"; + $sDisabledHtml = ''; + if ($oExtension->bRemovedFromDisk) { + $sDisabledHtml = 'disabled=""'; + } elseif (! array_key_exists($sCode, $this->aSelectedExtensionsForCheck)) { + $sChecked = ""; + } + + $sLabel = $oExtension->sLabel; + $sVersion = $oExtension->sVersion; + $sIdEnable = "aExtensions[$sCode][enable]"; + + $aExtensions[] = [ + << +HTML, + <<$sVersion +HTML, + <<$sLabel +HTML, + <<$sCode +HTML, + ]; + } + + return $this->GetTableData('Extensions', $aColumns, $aExtensions); + + } + + public function GetTableData(string $sTableName, array $aColumns, array $aData): array + { + if (empty($aData)) { + return [ + 'Type' => 'Table', + 'Columns' => [['label' => '']], + 'Data' => [[ Dict::S('DbCleaner:Table:Empty')]], + ]; + } + + $aNewColumns = []; + foreach ($aColumns as $sColumn) { + $aNewColumns[] = ['label' => Dict::S("DataFeatureRemoval:Table:$sTableName:$sColumn", $sColumn)]; + } + $aColumns = $aNewColumns; + + return [ + 'Type' => 'Table', + 'Columns' => $aColumns, + 'Data' => $aData, + ]; + } + + private function Analyze() + { + DataFeatureRemoverExtensionService::GetInstance()->SaveExtensions($this->aSelectedExtensionsForCheck); + + $sSourceEnvt = \MetaModel::GetEnvironment(); + $oDryRemovalRuntimeEnvironment = new DryRemovalRuntimeEnvironment(); + $oDryRemovalRuntimeEnvironment->Prepare($sSourceEnvt, $this->aSelectedExtensionsForCheck); + $oDryRemovalRuntimeEnvironment->CompileFrom($sSourceEnvt); + + $oSetupAudit = new SetupAudit($sSourceEnvt, DryRemovalRuntimeEnvironment::DRY_REMOVAL_AUDIT_ENV); + $this->Save($oSetupAudit->GetIssues()); + } + + private function Save(array $aGetRemovedClasses) + { + \IssueLog::Debug(__METHOD__, null, ['aGetRemovedClasses' => $aGetRemovedClasses]); + + DataFeatureRemoverAuditRuleService::GetInstance()->SaveChecks($aGetRemovedClasses); + } +} diff --git a/datamodels/2.x/combodo-data-feature-removal/src/Helper/DataFeatureRemovalException.php b/datamodels/2.x/combodo-data-feature-removal/src/Helper/DataFeatureRemovalException.php new file mode 100644 index 000000000..8c1c70748 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/src/Helper/DataFeatureRemovalException.php @@ -0,0 +1,30 @@ +getTraceAsString(); + $sError = $previous->getMessage(); + } else { + $sStack = $this->getTraceAsString(); + $sError = ''; + } + + $aContext['error'] = $sError; + $aContext['stack'] = $sStack; + DataFeatureRemovalLog::Error($message, null, $aContext); + parent::__construct($message, $code, $previous); + } +} diff --git a/datamodels/2.x/combodo-data-feature-removal/src/Helper/DataFeatureRemovalHelper.php b/datamodels/2.x/combodo-data-feature-removal/src/Helper/DataFeatureRemovalHelper.php new file mode 100644 index 000000000..2a4a33d39 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/src/Helper/DataFeatureRemovalHelper.php @@ -0,0 +1,13 @@ +AllowAllData(); + $oSet = new DBObjectSet($oSearch); + + while (null != ($oObj = $oSet->Fetch())) { + $oObj->DBDelete(); + } + + foreach ($aGetRemovedClasses as $sClass => $iCount) { + $oObj = new DataFeatureRemoverAuditRule(); + $oObj->Set('rule_name', 'FINAL_CLASS'); + $oObj->Set('extension_code', $sClass); + $oObj->Set('class_name', $sClass); + $oObj->Set('count', $iCount); + $oObj->DBWrite(); + } + } + + public function ReadCheckRules(): array + { + try { + $oSearch = DBObjectSearch::FromOQL('SELECT DataFeatureRemoverAuditRule', []); + $oSearch->AllowAllData(); + $oSet = new DBObjectSet($oSearch); + + $aRes = []; + while (null != ($oObj = $oSet->Fetch())) { + $aRes[] = $oObj; + } + + return $aRes; + } catch (Exception $e) { + throw new DataFeatureRemovalException(__FUNCTION__.' failed', 0, $e); + } + } +} diff --git a/datamodels/2.x/combodo-data-feature-removal/src/Model/DataFeatureRemoverExtensionService.php b/datamodels/2.x/combodo-data-feature-removal/src/Model/DataFeatureRemoverExtensionService.php new file mode 100644 index 000000000..79e053a10 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/src/Model/DataFeatureRemoverExtensionService.php @@ -0,0 +1,122 @@ +ReadItopExtensions(); + + $oSearch = DBObjectSearch::FromOQL('SELECT DataFeatureRemoverExtension', []); + $oSearch->AllowAllData(); + $oSet = new DBObjectSet($oSearch); + + while (null != ($oObj = $oSet->Fetch())) { + $oObj->DBDelete(); + } + + foreach ($aSelectedExtensionsForCheck as $i => $sCode) { + $oObj = new DataFeatureRemoverExtension(); + $oObj->Set('extension_code', $sCode); + /** @var iTopExtension $oExtension */ + $oExtension = $this->aItopExtensions[$sCode]; + $oObj->Set('module_names', json_encode($oExtension->aModules)); + $oObj->Set('label', $oExtension->sLabel); + $oObj->Set('version', $oExtension->sVersion); + $oObj->DBWrite(); + } + } + + private array $aSelectedExtensions = []; + private array $aItopExtensions = []; + private array $aIncludingExtensionsByModuleName = []; + public function ReadAuditedExtensions(): array + { + if (count($this->aSelectedExtensions) == 0) { + try { + $oSearch = DBObjectSearch::FromOQL('SELECT DataFeatureRemoverExtension', []); + $oSearch->AllowAllData(); + $oSet = new DBObjectSet($oSearch); + + while (null != ($oObj = $oSet->Fetch())) { + $sCode = $oObj->Get('extension_code'); + $sLabel = $oObj->Get('label'); + $sVersion = $oObj->Get('version'); + + $sModuleNames = $oObj->Get('module_names'); + $aModuleNames = json_decode($sModuleNames, true); + if (is_array($aModuleNames) && count($aModuleNames) > 0) { + foreach ($aModuleNames as $sModuleName) { + $aExtensions = $this->aIncludingExtensionsByModuleName[$sModuleName] ?? []; + $aExtensions[] = "$sLabel / $sVersion"; + $this->aIncludingExtensionsByModuleName[$sModuleName] = $aExtensions; + + } + } + $this->aSelectedExtensions[$sCode] = $oObj; + } + } catch (Exception $e) { + throw new DataFeatureRemovalException(__FUNCTION__.' failed', 0, $e); + } + } + + \IssueLog::Debug(__METHOD__, null, ['aSelectedExtensionsForCheck' => $this->aSelectedExtensions]); + \IssueLog::Debug(__METHOD__, null, ['aIncludingExtensionsByModuleName' => $this->aIncludingExtensionsByModuleName]); + + return $this->aSelectedExtensions; + } + + public function GetIncludingExtensions(string $sModuleName): array + { + $this->ReadAuditedExtensions(); + return $this->aIncludingExtensionsByModuleName[$sModuleName] ?? []; + } + + /** + * @return iTopExtension[] + */ + public function ReadItopExtensions(): array + { + if (count($this->aItopExtensions) == 0) { + $oExtensionsMap = new iTopExtensionsMap(); + $oExtensionsMap->LoadInstalledExtensionsFromDatabase(MetaModel::GetConfig()); + $this->aItopExtensions = $oExtensionsMap->GetAllExtensionsToDisplayInSetup(true); + + uasort($this->aItopExtensions, function (iTopExtension $oiTopExtension1, iTopExtension $oiTopExtension2) { + return strcmp($oiTopExtension1->sLabel, $oiTopExtension2->sLabel); + }); + } + + return $this->aItopExtensions; + } +} diff --git a/datamodels/2.x/combodo-data-feature-removal/templates/ExtensionRemovalDataTab.html.twig b/datamodels/2.x/combodo-data-feature-removal/templates/ExtensionRemovalDataTab.html.twig new file mode 100644 index 000000000..dbe39a956 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/templates/ExtensionRemovalDataTab.html.twig @@ -0,0 +1,8 @@ +{# @copyright Copyright (C) 2010-2024 Combodo SAS #} +{# @license http://opensource.org/licenses/AGPL-3.0 #} + +{% UIForm Standard {} %} + {% UIPanel Neutral { sTitle:'DataFeatureRemoval:Analysis:Title'|dict_s, sSubTitle: 'DataFeatureRemoval:Analysis:SubTitle'|dict_format(rule_count) } %} + {% UIDataTable ForForm { sRef:'aCheckRules', aColumns:aCheckRules.Columns, aData:aCheckRules.Data} %}{% EndUIDataTable %} + {% EndUIPanel %} +{% EndUIForm %} diff --git a/datamodels/2.x/combodo-data-feature-removal/templates/FeaturesTab.html.twig b/datamodels/2.x/combodo-data-feature-removal/templates/FeaturesTab.html.twig new file mode 100644 index 000000000..6e1e9c8e1 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/templates/FeaturesTab.html.twig @@ -0,0 +1,18 @@ +{# @copyright Copyright (C) 2010-2024 Combodo SAS #} +{# @license http://opensource.org/licenses/AGPL-3.0 #} + + +{% UIForm Standard {} %} + {% UIInput ForHidden {sName:'operation', sValue:'Analyze'} %} + {% UIInput ForHidden {sName:'transaction_id', sValue:sTransactionId} %} + + {% UIFieldSet Standard {sLegend:'DataFeatureRemoval:Features:Title'|dict_s} %} + {% UIDataTable ForForm { sRef:'aExtensions', aColumns:aExtensions.Columns, aData:aExtensions.Data} %}{% EndUIDataTable %} + {% EndUIFieldSet %} + + + {% UIToolbar ForButton {} %} + {% UIButton ForPrimaryAction {sLabel:'UI:Button:Analyze'|dict_s, sName:'btn_apply', sId:'btn_apply', bIsSubmit:true} %} + {% EndUIToolbar %} + +{% EndUIForm %} diff --git a/datamodels/2.x/combodo-data-feature-removal/templates/Main.html.twig b/datamodels/2.x/combodo-data-feature-removal/templates/Main.html.twig new file mode 100644 index 000000000..d1552287f --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/templates/Main.html.twig @@ -0,0 +1,28 @@ +{# @copyright Copyright (C) 2010-2025 Combodo SARL #} +{# @license http://opensource.org/licenses/AGPL-3.0 #} + +{# Usable variables: #} +{# * sTitle => page title #} +{# * sMessage => success message #} +{# * sError => error message #} + +{# DataFeatureRemoval #} + +{% UIPanel Neutral { sTitle:'DataFeatureRemoval:Main:Title'|dict_s, sSubTitle: 'DataFeatureRemoval:Main:SubTitle'|dict_s } %} + + {% UIAlert ForInformation { sTitle:'DataFeatureRemoval:Helper:Title'|dict_s } %} + {{ 'DataFeatureRemoval:Helper:Desc1'|dict_s }}
+ {{ 'DataFeatureRemoval:Helper:Desc2'|dict_s }} + {% EndUIAlert %} + + +{% if null != DataFeatureRemovalErrorMessage %} +
+ {% UIAlert ForFailure { sTitle:'DataFeatureRemoval:Failure:Title'|dict_s, sId: 'feature_removal_error_msg', sContent:DataFeatureRemovalErrorMessage } %} + {% EndUIAlert %} +
+{% endif %} + + {% include 'FeaturesTab.html.twig' %} + {% include 'ExtensionRemovalDataTab.html.twig' %} +{% EndUIPanel %} diff --git a/datamodels/2.x/combodo-data-feature-removal/templates/Main.js.twig b/datamodels/2.x/combodo-data-feature-removal/templates/Main.js.twig new file mode 100644 index 000000000..a99810a51 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/templates/Main.js.twig @@ -0,0 +1,9 @@ +{# @copyright Copyright (C) 2010-2024 Combodo SAS #} +{# @license http://opensource.org/licenses/AGPL-3.0 #} + +$(document).on('click', '#checkAllExtensions', function() { + var bChecked = this.checked; + $('.extension_check').each( function() { this.checked = bChecked }); +}); + + diff --git a/datamodels/2.x/combodo-data-feature-removal/templates/Main.ready.js.twig b/datamodels/2.x/combodo-data-feature-removal/templates/Main.ready.js.twig new file mode 100644 index 000000000..375c45499 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/templates/Main.ready.js.twig @@ -0,0 +1,2 @@ +{# @copyright Copyright (C) 2010-2024 Combodo SAS #} +{# @license http://opensource.org/licenses/AGPL-3.0 #} diff --git a/datamodels/2.x/combodo-data-feature-removal/vendor/autoload.php b/datamodels/2.x/combodo-data-feature-removal/vendor/autoload.php new file mode 100644 index 000000000..43b68436c --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/vendor/autoload.php @@ -0,0 +1,25 @@ + + * Jordi Boggiano + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Composer\Autoload; + +/** + * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. + * + * $loader = new \Composer\Autoload\ClassLoader(); + * + * // register classes with namespaces + * $loader->add('Symfony\Component', __DIR__.'/component'); + * $loader->add('Symfony', __DIR__.'/framework'); + * + * // activate the autoloader + * $loader->register(); + * + * // to enable searching the include path (eg. for PEAR packages) + * $loader->setUseIncludePath(true); + * + * In this example, if you try to use a class in the Symfony\Component + * namespace or one of its children (Symfony\Component\Console for instance), + * the autoloader will first look for the class under the component/ + * directory, and it will then fallback to the framework/ directory if not + * found before giving up. + * + * This class is loosely based on the Symfony UniversalClassLoader. + * + * @author Fabien Potencier + * @author Jordi Boggiano + * @see https://www.php-fig.org/psr/psr-0/ + * @see https://www.php-fig.org/psr/psr-4/ + */ +class ClassLoader +{ + /** @var \Closure(string):void */ + private static $includeFile; + + /** @var string|null */ + private $vendorDir; + + // PSR-4 + /** + * @var array> + */ + private $prefixLengthsPsr4 = array(); + /** + * @var array> + */ + private $prefixDirsPsr4 = array(); + /** + * @var list + */ + private $fallbackDirsPsr4 = array(); + + // PSR-0 + /** + * List of PSR-0 prefixes + * + * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) + * + * @var array>> + */ + private $prefixesPsr0 = array(); + /** + * @var list + */ + private $fallbackDirsPsr0 = array(); + + /** @var bool */ + private $useIncludePath = false; + + /** + * @var array + */ + private $classMap = array(); + + /** @var bool */ + private $classMapAuthoritative = false; + + /** + * @var array + */ + private $missingClasses = array(); + + /** @var string|null */ + private $apcuPrefix; + + /** + * @var array + */ + private static $registeredLoaders = array(); + + /** + * @param string|null $vendorDir + */ + public function __construct($vendorDir = null) + { + $this->vendorDir = $vendorDir; + self::initializeIncludeClosure(); + } + + /** + * @return array> + */ + public function getPrefixes() + { + if (!empty($this->prefixesPsr0)) { + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); + } + + return array(); + } + + /** + * @return array> + */ + public function getPrefixesPsr4() + { + return $this->prefixDirsPsr4; + } + + /** + * @return list + */ + public function getFallbackDirs() + { + return $this->fallbackDirsPsr0; + } + + /** + * @return list + */ + public function getFallbackDirsPsr4() + { + return $this->fallbackDirsPsr4; + } + + /** + * @return array Array of classname => path + */ + public function getClassMap() + { + return $this->classMap; + } + + /** + * @param array $classMap Class to filename map + * + * @return void + */ + public function addClassMap(array $classMap) + { + if ($this->classMap) { + $this->classMap = array_merge($this->classMap, $classMap); + } else { + $this->classMap = $classMap; + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, either + * appending or prepending to the ones previously set for this prefix. + * + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 root directories + * @param bool $prepend Whether to prepend the directories + * + * @return void + */ + public function add($prefix, $paths, $prepend = false) + { + $paths = (array) $paths; + if (!$prefix) { + if ($prepend) { + $this->fallbackDirsPsr0 = array_merge( + $paths, + $this->fallbackDirsPsr0 + ); + } else { + $this->fallbackDirsPsr0 = array_merge( + $this->fallbackDirsPsr0, + $paths + ); + } + + return; + } + + $first = $prefix[0]; + if (!isset($this->prefixesPsr0[$first][$prefix])) { + $this->prefixesPsr0[$first][$prefix] = $paths; + + return; + } + if ($prepend) { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $paths, + $this->prefixesPsr0[$first][$prefix] + ); + } else { + $this->prefixesPsr0[$first][$prefix] = array_merge( + $this->prefixesPsr0[$first][$prefix], + $paths + ); + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, either + * appending or prepending to the ones previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories + * @param bool $prepend Whether to prepend the directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function addPsr4($prefix, $paths, $prepend = false) + { + $paths = (array) $paths; + if (!$prefix) { + // Register directories for the root namespace. + if ($prepend) { + $this->fallbackDirsPsr4 = array_merge( + $paths, + $this->fallbackDirsPsr4 + ); + } else { + $this->fallbackDirsPsr4 = array_merge( + $this->fallbackDirsPsr4, + $paths + ); + } + } elseif (!isset($this->prefixDirsPsr4[$prefix])) { + // Register directories for a new namespace. + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = $paths; + } elseif ($prepend) { + // Prepend directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $paths, + $this->prefixDirsPsr4[$prefix] + ); + } else { + // Append directories for an already registered namespace. + $this->prefixDirsPsr4[$prefix] = array_merge( + $this->prefixDirsPsr4[$prefix], + $paths + ); + } + } + + /** + * Registers a set of PSR-0 directories for a given prefix, + * replacing any others previously set for this prefix. + * + * @param string $prefix The prefix + * @param list|string $paths The PSR-0 base directories + * + * @return void + */ + public function set($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr0 = (array) $paths; + } else { + $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; + } + } + + /** + * Registers a set of PSR-4 directories for a given namespace, + * replacing any others previously set for this namespace. + * + * @param string $prefix The prefix/namespace, with trailing '\\' + * @param list|string $paths The PSR-4 base directories + * + * @throws \InvalidArgumentException + * + * @return void + */ + public function setPsr4($prefix, $paths) + { + if (!$prefix) { + $this->fallbackDirsPsr4 = (array) $paths; + } else { + $length = strlen($prefix); + if ('\\' !== $prefix[$length - 1]) { + throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); + } + $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; + $this->prefixDirsPsr4[$prefix] = (array) $paths; + } + } + + /** + * Turns on searching the include path for class files. + * + * @param bool $useIncludePath + * + * @return void + */ + public function setUseIncludePath($useIncludePath) + { + $this->useIncludePath = $useIncludePath; + } + + /** + * Can be used to check if the autoloader uses the include path to check + * for classes. + * + * @return bool + */ + public function getUseIncludePath() + { + return $this->useIncludePath; + } + + /** + * Turns off searching the prefix and fallback directories for classes + * that have not been registered with the class map. + * + * @param bool $classMapAuthoritative + * + * @return void + */ + public function setClassMapAuthoritative($classMapAuthoritative) + { + $this->classMapAuthoritative = $classMapAuthoritative; + } + + /** + * Should class lookup fail if not found in the current class map? + * + * @return bool + */ + public function isClassMapAuthoritative() + { + return $this->classMapAuthoritative; + } + + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + * + * @return void + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + + /** + * Registers this instance as an autoloader. + * + * @param bool $prepend Whether to prepend the autoloader or not + * + * @return void + */ + public function register($prepend = false) + { + spl_autoload_register(array($this, 'loadClass'), true, $prepend); + + if (null === $this->vendorDir) { + return; + } + + if ($prepend) { + self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; + } else { + unset(self::$registeredLoaders[$this->vendorDir]); + self::$registeredLoaders[$this->vendorDir] = $this; + } + } + + /** + * Unregisters this instance as an autoloader. + * + * @return void + */ + public function unregister() + { + spl_autoload_unregister(array($this, 'loadClass')); + + if (null !== $this->vendorDir) { + unset(self::$registeredLoaders[$this->vendorDir]); + } + } + + /** + * Loads the given class or interface. + * + * @param string $class The name of the class + * @return true|null True if loaded, null otherwise + */ + public function loadClass($class) + { + if ($file = $this->findFile($class)) { + $includeFile = self::$includeFile; + $includeFile($file); + + return true; + } + + return null; + } + + /** + * Finds the path to the file where the class is defined. + * + * @param string $class The name of the class + * + * @return string|false The path if found, false otherwise + */ + public function findFile($class) + { + // class map lookup + if (isset($this->classMap[$class])) { + return $this->classMap[$class]; + } + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { + return false; + } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } + + $file = $this->findFileWithExtension($class, '.php'); + + // Search for Hack files if we are running on HHVM + if (false === $file && defined('HHVM_VERSION')) { + $file = $this->findFileWithExtension($class, '.hh'); + } + + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { + // Remember that this class does not exist. + $this->missingClasses[$class] = true; + } + + return $file; + } + + /** + * Returns the currently registered loaders keyed by their corresponding vendor directories. + * + * @return array + */ + public static function getRegisteredLoaders() + { + return self::$registeredLoaders; + } + + /** + * @param string $class + * @param string $ext + * @return string|false + */ + private function findFileWithExtension($class, $ext) + { + // PSR-4 lookup + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; + + $first = $class[0]; + if (isset($this->prefixLengthsPsr4[$first])) { + $subPath = $class; + while (false !== $lastPos = strrpos($subPath, '\\')) { + $subPath = substr($subPath, 0, $lastPos); + $search = $subPath . '\\'; + if (isset($this->prefixDirsPsr4[$search])) { + $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); + foreach ($this->prefixDirsPsr4[$search] as $dir) { + if (file_exists($file = $dir . $pathEnd)) { + return $file; + } + } + } + } + } + + // PSR-4 fallback dirs + foreach ($this->fallbackDirsPsr4 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + return $file; + } + } + + // PSR-0 lookup + if (false !== $pos = strrpos($class, '\\')) { + // namespaced class name + $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) + . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); + } else { + // PEAR-like class name + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; + } + + if (isset($this->prefixesPsr0[$first])) { + foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { + if (0 === strpos($class, $prefix)) { + foreach ($dirs as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + } + } + } + + // PSR-0 fallback dirs + foreach ($this->fallbackDirsPsr0 as $dir) { + if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + return $file; + } + } + + // PSR-0 include paths. + if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { + return $file; + } + + return false; + } + + /** + * @return void + */ + private static function initializeIncludeClosure() + { + if (self::$includeFile !== null) { + return; + } + + /** + * Scope isolated include. + * + * Prevents access to $this/self from included files. + * + * @param string $file + * @return void + */ + self::$includeFile = \Closure::bind(static function($file) { + include $file; + }, null, null); + } +} diff --git a/datamodels/2.x/combodo-data-feature-removal/vendor/composer/LICENSE b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/LICENSE new file mode 100644 index 000000000..f27399a04 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/LICENSE @@ -0,0 +1,21 @@ + +Copyright (c) Nils Adermann, Jordi Boggiano + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_classmap.php b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_classmap.php new file mode 100644 index 000000000..a3e67ca36 --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_classmap.php @@ -0,0 +1,17 @@ + $baseDir . '/src/Controller/DataFeatureRemovalController.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Helper\\DataFeatureRemovalException' => $baseDir . '/src/Helper/DataFeatureRemovalException.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Helper\\DataFeatureRemovalHelper' => $baseDir . '/src/Helper/DataFeatureRemovalHelper.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Helper\\DataFeatureRemovalLog' => $baseDir . '/src/Helper/DataFeatureRemovalLog.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Model\\DataFeatureRemoverAuditRuleService' => $baseDir . '/src/Model/DataFeatureRemoverAuditRuleService.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Model\\DataFeatureRemoverExtensionService' => $baseDir . '/src/Model/DataFeatureRemoverExtensionService.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Service\\SetupAudit' => $baseDir . '/src/Service/SetupAudit.php', + 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', +); diff --git a/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_namespaces.php b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_namespaces.php new file mode 100644 index 000000000..15a2ff3ad --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_namespaces.php @@ -0,0 +1,9 @@ + array($baseDir . '/src'), + '' => array($baseDir . '/src/NoNamespace'), +); diff --git a/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_real.php b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_real.php new file mode 100644 index 000000000..c766acb7d --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_real.php @@ -0,0 +1,37 @@ +setClassMapAuthoritative(true); + $loader->register(true); + + return $loader; + } +} diff --git a/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_static.php b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_static.php new file mode 100644 index 000000000..046440b0f --- /dev/null +++ b/datamodels/2.x/combodo-data-feature-removal/vendor/composer/autoload_static.php @@ -0,0 +1,48 @@ + + array ( + 'Combodo\\iTop\\DataFeatureRemoval\\' => 32, + ), + ); + + public static $prefixDirsPsr4 = array ( + 'Combodo\\iTop\\DataFeatureRemoval\\' => + array ( + 0 => __DIR__ . '/../..' . '/src', + ), + ); + + public static $fallbackDirsPsr4 = array ( + 0 => __DIR__ . '/../..' . '/src/NoNamespace', + ); + + public static $classMap = array ( + 'Combodo\\iTop\\DataFeatureRemoval\\Controller\\DataFeatureRemovalController' => __DIR__ . '/../..' . '/src/Controller/DataFeatureRemovalController.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Helper\\DataFeatureRemovalException' => __DIR__ . '/../..' . '/src/Helper/DataFeatureRemovalException.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Helper\\DataFeatureRemovalHelper' => __DIR__ . '/../..' . '/src/Helper/DataFeatureRemovalHelper.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Helper\\DataFeatureRemovalLog' => __DIR__ . '/../..' . '/src/Helper/DataFeatureRemovalLog.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Model\\DataFeatureRemoverAuditRuleService' => __DIR__ . '/../..' . '/src/Model/DataFeatureRemoverAuditRuleService.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Model\\DataFeatureRemoverExtensionService' => __DIR__ . '/../..' . '/src/Model/DataFeatureRemoverExtensionService.php', + 'Combodo\\iTop\\DataFeatureRemoval\\Service\\SetupAudit' => __DIR__ . '/../..' . '/src/Service/SetupAudit.php', + 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', + ); + + public static function getInitializer(ClassLoader $loader) + { + return \Closure::bind(function () use ($loader) { + $loader->prefixLengthsPsr4 = ComposerStaticInit4f96a7199e2c0d90e547333758b26464::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit4f96a7199e2c0d90e547333758b26464::$prefixDirsPsr4; + $loader->fallbackDirsPsr4 = ComposerStaticInit4f96a7199e2c0d90e547333758b26464::$fallbackDirsPsr4; + $loader->classMap = ComposerStaticInit4f96a7199e2c0d90e547333758b26464::$classMap; + + }, null, ClassLoader::class); + } +}