diff --git a/src/Plugin.php b/src/Plugin.php index 08ce049..618055c 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -64,13 +64,6 @@ public static function getSubscribedEvents() ]; } - public function preInstall(Event $event) - { - // Not triggered when this plugin is installing. Solves the method addPackage. - - $this->actionIsDumpAutoload = false; - } - /** * @inheritDoc */ @@ -91,6 +84,13 @@ public function activate(Composer $composer, IOInterface $io) } } + public function preInstall(Event $event) + { + // Not triggered when this plugin is installing. Solves the method addPackage. + + $this->actionIsDumpAutoload = false; + } + public function addPackage(PackageEvent $event) { // If this plugin is installing here is set install/update mode (solves not triggered the method preInstall).