From b2830965352d167080d474a7fefef7c032149611 Mon Sep 17 00:00:00 2001 From: Iman Aboheydary <31434218+iranimij@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:13:20 +0200 Subject: [PATCH] Update ModuleXmlComponentDetector.php Remove extra exception --- ComponentDetector/ModuleXmlComponentDetector.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ComponentDetector/ModuleXmlComponentDetector.php b/ComponentDetector/ModuleXmlComponentDetector.php index 14fa19b..dc55019 100644 --- a/ComponentDetector/ModuleXmlComponentDetector.php +++ b/ComponentDetector/ModuleXmlComponentDetector.php @@ -39,10 +39,6 @@ public function getComponentsByModuleName(string $moduleName): array throw new NotFoundException(__('Module "' . $moduleName . '" not found')); } - if (empty($moduleInfo['sequence'])) { - throw new NotFoundException(__('No dependencies for "' . $moduleName . '" found in module.xml')); - } - foreach ($moduleInfo['sequence'] as $sequenceModuleName) { $components[] = $this->componentFactory->createByModuleName($sequenceModuleName, false); }