13
13
namespace PatternLab ;
14
14
15
15
use \Composer \Script \Event ;
16
+ use \Composer \Installer \PackageEvent ;
16
17
use \PatternLab \InstallerUtil ;
17
18
18
19
class Installer {
@@ -21,7 +22,7 @@ class Installer {
21
22
* Run the PL tasks when a package is installed
22
23
* @param {Object} a script event object from composer
23
24
*/
24
- public static function postPackageInstall (Event $ event ) {
25
+ public static function postPackageInstall (PackageEvent $ event ) {
25
26
26
27
// make sure pattern lab has been loaded
27
28
if (class_exists ("\PatternLab\Config " )) {
@@ -36,7 +37,7 @@ public static function postPackageInstall(Event $event) {
36
37
* Run the PL tasks when a package is updated
37
38
* @param {Object} a script event object from composer
38
39
*/
39
- public static function postPackageUpdate (Event $ event ) {
40
+ public static function postPackageUpdate (PackageEvent $ event ) {
40
41
41
42
// make sure pattern lab has been loaded
42
43
if (class_exists ("\PatternLab\Config " )) {
@@ -66,7 +67,7 @@ public static function preInstallCmd(Event $event) {
66
67
* Run the PL tasks when a package is removed
67
68
* @param {Object} a script event object from composer
68
69
*/
69
- public static function prePackageUninstall (Event $ event ) {
70
+ public static function prePackageUninstall (PackageEvent $ event ) {
70
71
71
72
// make sure pattern lab has been loaded
72
73
if (class_exists ("\PatternLab\Config " )) {
0 commit comments