. */ /* */ /*************************************************************************************/ namespace Thelia\Module; use Symfony\Component\Finder\Finder; /** * Class ModuleManagement * @package Thelia\Module * @author Manuel Raynaud */ class ModuleManagement { protected $baseModuleDir; public function __construct() { $this->baseModuleDir = THELIA_MODULE_DIR; } public function updateModules() { $finder = new Finder(); $finder ->name('module.xml') ->in($this->baseModuleDir . '/*/Config'); $descriptorValidator = new ModuleDescriptorValidator(); foreach ($finder as $file) { $content = $descriptorValidator->getDescriptor($file->getRealPath()); var_dump($content); exit; } } }