diff --git a/composer.json b/composer.json index e886b62ba3d132cd8a2c6da7dab45901c46763b8..f09183a80922f95b487a5fffb94e1b99f8842b2d 100644 --- a/composer.json +++ b/composer.json @@ -167,14 +167,14 @@ ] }, "scripts": { - "drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold", - "post-drupal-scaffold-cmd": ["Varbase\\composer\\ScriptHandler::postDrupalScaffoldProcedure"], "pre-install-cmd": ["Varbase\\composer\\ScriptHandler::checkComposerVersion"], - "pre-update-cmd": ["Varbase\\composer\\ScriptHandler:checkComposerVersion"], + "pre-update-cmd": ["Varbase\\composer\\ScriptHandler::checkComposerVersion"], "post-install-cmd": ["Varbase\\composer\\ScriptHandler::createRequiredFiles"], "post-update-cmd": ["Varbase\\composer\\ScriptHandlerr::createRequiredFiles"], "post-package-install": ["Varbase\\composer\\ScriptHandler::postInstallProcedure"], "post-package-update": ["Varbase\\composer\\ScriptHandler::postUpdateProcedure"], + "post-drupal-scaffold-cmd": ["Varbase\\composer\\ScriptHandler::postDrupalScaffoldProcedure"], + "drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold", "create-new-vartheme": "scripts/create-new-vartheme.sh", "varbase-check-tests": "scripts/varbase-check-tests.sh", "varbase-init-tests": "scripts/varbase-init-tests.sh", diff --git a/src/composer/ScriptHandler.php b/src/composer/ScriptHandler.php index b9055952ac6fbcdb0ec3f75e4dd3c328a53c338a..f9dd16afb9728dc6ae99a5dfaf07b1439d0365b9 100644 --- a/src/composer/ScriptHandler.php +++ b/src/composer/ScriptHandler.php @@ -2,6 +2,7 @@ namespace Varbase\composer; +use Composer\Semver\Comparator; use Symfony\Component\Filesystem\Filesystem; use Composer\EventDispatcher\Event; @@ -22,10 +23,10 @@ class ScriptHandler { protected static function getDrupalRoot($project_root) { return $project_root . '/docroot'; } - + /** * Create required files. - * + * * @param Event $event */ public static function createRequiredFiles(Event $event) { @@ -64,7 +65,7 @@ class ScriptHandler { $event->getIO()->write("Create a sites/default/files directory with chmod 0777"); } } - + /** * Checks if the installed version of Composer is compatible. *