|
20 | 20 | use Composer\Plugin\PluginEvents;
|
21 | 21 | use Composer\EventDispatcher\EventSubscriberInterface;
|
22 | 22 | use Composer\Script\ScriptEvents;
|
| 23 | +use Composer\Installer\PackageEvents; |
23 | 24 | use Composer\Util\Filesystem;
|
24 | 25 | use Symfony\Component\Process\Process;
|
25 | 26 |
|
@@ -103,13 +104,13 @@ public static function getSubscribedEvents()
|
103 | 104 | ScriptEvents::POST_UPDATE_CMD => array(
|
104 | 105 | array('onNewCodeEvent', 0),
|
105 | 106 | ),
|
106 |
| - ScriptEvents::POST_PACKAGE_UNINSTALL => array( |
| 107 | + PackageEvents::POST_PACKAGE_UNINSTALL => array( |
107 | 108 | array('onPackageUnistall', 0),
|
108 | 109 | )
|
109 | 110 | );
|
110 | 111 | }
|
111 | 112 |
|
112 |
| - public function onPackageUnistall(\Composer\Script\PackageEvent $event) |
| 113 | + public function onPackageUnistall(\Composer\Installer\PackageEvent $event) |
113 | 114 | {
|
114 | 115 | $ds = DIRECTORY_SEPARATOR;
|
115 | 116 | $package = $event->getOperation()->getPackage();
|
@@ -138,9 +139,9 @@ public function onCommandEvent(\Composer\Plugin\CommandEvent $event)
|
138 | 139 | /**
|
139 | 140 | * event listener is named this way, as it listens for events leading to changed code files
|
140 | 141 | *
|
141 |
| - * @param \Composer\Script\CommandEvent $event |
| 142 | + * @param \Composer\Script\Event $event |
142 | 143 | */
|
143 |
| - public function onNewCodeEvent(\Composer\Script\CommandEvent $event) |
| 144 | + public function onNewCodeEvent(\Composer\Script\Event $event) |
144 | 145 | {
|
145 | 146 | if ($this->io->isDebug()) {
|
146 | 147 | $this->io->write('start magento deploy via deployManager');
|
|
0 commit comments