I have run into an issue recently where a user of a 3.1.1 phpBB version installed an extension that needed at least phpBB version 3.1.3 due to additional template events.
As this information is set into composer file for the extension, eg
Code: Select all
"extra": {
"display-name": "xxxxxxxxxxxx",
"soft-require": {
"phpbb/phpbb": ">=3.1.4,<3.2.*@dev"
could we not disable the enable button in the ACP if the phpBB version in use doesn't meet the requirements of the soft-require?
Or should it be left up to the extension author using some code in the migration file (hints are welcome

) that effectively stops the enabling of the extension?
Is there a "hard-require" parameter?