1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-26 14:34:31 +02:00

feat(core): update Comparator for flextype version validation

This commit is contained in:
Awilum
2020-04-21 15:42:50 +03:00
parent 61667e7868
commit c0d2b8cb1e

View File

@@ -263,7 +263,7 @@ class Plugins
{
foreach ($plugins as $plugin_name => $plugin_data) {
if (isset($plugin_data['manifest']['dependencies']['flextype']) &&
Comparator::equalTo($plugin_data['manifest']['dependencies']['flextype'], '0.9.7')) {
Comparator::equalTo($plugin_data['manifest']['dependencies']['flextype'], $this->flextype['registry']->get('flextype.manifest.version'))) {
$plugins[$plugin_name] = $plugin_data;
} else {
unset($plugins[$plugin_name]);