diff --git a/CHANGELOG.md b/CHANGELOG.md index 50a878f..5a0acca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +# [2.2.0] = 11 October 2022 ### Added - New template parsing - Simple detection of `Hyva_Theme` deps diff --git a/ComponentCollector/TemplateComponentCollector.php b/ComponentCollector/TemplateComponentCollector.php index 7cf3907..693c3a2 100644 --- a/ComponentCollector/TemplateComponentCollector.php +++ b/ComponentCollector/TemplateComponentCollector.php @@ -31,7 +31,10 @@ public function getComponentsFromFile(string $file): array $fileRead = $this->fileReadFactory->create($file, 'file'); $contents = $fileRead->readAll(); $components = $this->findComponentsByModuleName($contents); - $patterns = ['hyva.modal' => 'Hyva_Theme']; + $patterns = [ + 'hyva.modal' => 'Hyva_Theme', + '$viewModels->require' => 'Hyva_Theme', + ]; $components = array_merge($components, $this->findComponentsByPattern($contents, $patterns)); return $components; } diff --git a/composer.json b/composer.json index a816358..93b6581 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "yireo/magento2-extensionchecker", "license": "OSL-3.0", "type": "magento2-module", - "version": "2.1.4", + "version": "2.2.0", "homepage": "https://github.com/yireo/Yireo_ExtensionChecker", "description": "Scan the code of a Magento module", "keywords": [