Skip to content

Commit

Permalink
Merge pull request #25 from brosenberger/master
Browse files Browse the repository at this point in the history
fix deprecation of command event
  • Loading branch information
David Verholen authored Aug 1, 2017
2 parents e4fcce6 + d9cd355 commit 8ce3aa7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Composer\Composer;
use Composer\EventDispatcher\EventSubscriberInterface;
use Composer\IO\IOInterface;
use Composer\Script\CommandEvent;
use Composer\Script\Event;
use Composer\Plugin\PluginInterface;
use Composer\Script\ScriptEvents;

Expand Down Expand Up @@ -102,11 +102,11 @@ protected function initEventSubscribers(Composer $composer, IOInterface $io)
/**
* onPostInstallCmd
*
* @param CommandEvent $event
* @param Event $event
*
* @return void
*/
public function onPostInstallCmd(CommandEvent $event)
public function onPostInstallCmd(Event $event)
{
$event->getIO()->write('<info>post install:</info>');
Deploy\Manager::getInstance()->doDeploy();
Expand All @@ -115,11 +115,11 @@ public function onPostInstallCmd(CommandEvent $event)
/**
* onPostUpdateCmd
*
* @param CommandEvent $event
* @param Event $event
*
* @return void
*/
public function onPostUpdateCmd(CommandEvent $event)
public function onPostUpdateCmd(Event $event)
{
$event->getIO()->write('<info>post update:</info>');
Deploy\Manager::getInstance()->doDeploy();
Expand Down

0 comments on commit 8ce3aa7

Please sign in to comment.