From 126666f3c7a56f886a829a0a3b7f73967a4a4246 Mon Sep 17 00:00:00 2001 From: Anton Shevchuk Date: Fri, 22 Sep 2017 10:11:41 +0300 Subject: [PATCH] Switch to `post-create-project-cmd` event --- src/Installers/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Installers/Plugin.php b/src/Installers/Plugin.php index d88e979..3e0cbc0 100644 --- a/src/Installers/Plugin.php +++ b/src/Installers/Plugin.php @@ -85,7 +85,7 @@ public static function getSubscribedEvents(): array return [ // copy extra files from root composer.json // do it only once after create project - ScriptEvents::POST_ROOT_PACKAGE_INSTALL => 'copyProjectExtraFiles', + ScriptEvents::POST_CREATE_PROJECT_CMD => 'copyProjectExtraFiles', // copy module's files to working directory PackageEvents::POST_PACKAGE_INSTALL => 'copyModuleFiles', PackageEvents::POST_PACKAGE_UPDATE => 'copyModuleFiles',