diff --git a/setup.php b/setup.php index 91c9a2a..a09e3c8 100644 --- a/setup.php +++ b/setup.php @@ -199,3 +199,14 @@ function plugin_version_escalade() ], ]; } + + +function plugin_escalade_check_prerequisites() +{ + if (!is_readable(__DIR__ . '/vendor/autoload.php') || !is_file(__DIR__ . '/vendor/autoload.php')) { + echo "Run composer install --no-dev in the plugin directory
"; + return false; + } + + return true; +}