Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Mar 19, 2020
1 parent aff2836 commit 6be82a9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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).
Expand Down

0 comments on commit 6be82a9

Please sign in to comment.