Skip to content

Commit

Permalink
New release
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Oct 11, 2022
1 parent 6ef172f commit 9c3d201
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion ComponentCollector/TemplateComponentCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 9c3d201

Please sign in to comment.