October: Improve visibility of missing plugin dependencies

Created on 17 Feb 2016  路  3Comments  路  Source: octobercms/october

If you add a plugin to the $requirement attrib of your Plugin method and don't have that required plugin installed, doing a php artisan plugin:refresh Your.Plugin will result in:

Plugin "Your.Plugin" not found.

it should instead provide a message about not meeting requirements.

Example:

class Plugin extends PluginBase
{

    public $require = [
        'RainLab.User',
        'RainLab.Location',
        'RainLab.UserPlus',
    ];

If I don't have _RainLab.UserPlug_ installed, doing a plugin:refresh will result in the above message. It really should say something along the lines of

Plugin "Your.Plugin" requires a plugin "RainLab.Userplus" not currently installed.

Medium Completed Enhancement

Most helpful comment

Fixed by a40357cec951beecfadb0b730ab95324dc1eac7f

All 3 comments

This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this issue is still relevant or you would like to see action on it, please respond and we will get the ball rolling.

This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this issue is still relevant or you would like to see action on it, please respond and we will get the ball rolling.

Fixed by a40357cec951beecfadb0b730ab95324dc1eac7f

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jvanremoortere picture jvanremoortere  路  3Comments

d3monfiend picture d3monfiend  路  3Comments

axomat picture axomat  路  3Comments

gergo85 picture gergo85  路  3Comments

m49n picture m49n  路  3Comments