|
@@ 119-130 (lines=12) @@
|
| 116 |
|
return; |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
if (version_compare($matches[0], self::MIN_CLI_VERSION, '<')) { |
| 120 |
|
$this->printWarning($io, sprintf( |
| 121 |
|
'Found an unsupported version of the Puli CLI: %s. Please '. |
| 122 |
|
'upgrade to version %s or higher. You can also install the '. |
| 123 |
|
'puli/cli dependency at version %s in your project.', |
| 124 |
|
$matches[0], |
| 125 |
|
self::MIN_CLI_VERSION, |
| 126 |
|
self::MIN_CLI_VERSION |
| 127 |
|
)); |
| 128 |
|
|
| 129 |
|
return; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
if (version_compare($matches[0], self::MAX_CLI_VERSION, '>')) { |
| 133 |
|
$this->printWarning($io, sprintf( |
|
@@ 132-142 (lines=11) @@
|
| 129 |
|
return; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
if (version_compare($matches[0], self::MAX_CLI_VERSION, '>')) { |
| 133 |
|
$this->printWarning($io, sprintf( |
| 134 |
|
'Found an unsupported version of the Puli CLI: %s. Please '. |
| 135 |
|
'downgrade to a lower version. You can also install the '. |
| 136 |
|
'puli/cli dependency at a lower version than %s in your project.', |
| 137 |
|
$matches[0], |
| 138 |
|
self::MAX_CLI_VERSION |
| 139 |
|
)); |
| 140 |
|
|
| 141 |
|
return; |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
$composer->getEventDispatcher()->addSubscriber($this); |
| 145 |
|
} |