Skip to content

Commit 9c3d201

Browse files
committed
New release
1 parent 6ef172f commit 9c3d201

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
# [2.2.0] = 11 October 2022
910
### Added
1011
- New template parsing
1112
- Simple detection of `Hyva_Theme` deps

ComponentCollector/TemplateComponentCollector.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ public function getComponentsFromFile(string $file): array
3131
$fileRead = $this->fileReadFactory->create($file, 'file');
3232
$contents = $fileRead->readAll();
3333
$components = $this->findComponentsByModuleName($contents);
34-
$patterns = ['hyva.modal' => 'Hyva_Theme'];
34+
$patterns = [
35+
'hyva.modal' => 'Hyva_Theme',
36+
'$viewModels->require' => 'Hyva_Theme',
37+
];
3538
$components = array_merge($components, $this->findComponentsByPattern($contents, $patterns));
3639
return $components;
3740
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "yireo/magento2-extensionchecker",
33
"license": "OSL-3.0",
44
"type": "magento2-module",
5-
"version": "2.1.4",
5+
"version": "2.2.0",
66
"homepage": "https://github.com/yireo/Yireo_ExtensionChecker",
77
"description": "Scan the code of a Magento module",
88
"keywords": [

0 commit comments

Comments
 (0)