Skip to content

Commit 6bbfd84

Browse files
committed
adding event and trying to read the arguments
1 parent 319e6e9 commit 6bbfd84

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/PatternLab/InstallerUtil.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ protected static function pathExists($packageName,$path) {
511511
*/
512512
public static function postInstallCmd($installerInfo, $event) {
513513

514-
self::packagesInstall($installerInfo);
514+
self::packagesInstall($installerInfo, $event);
515515

516516
}
517517

@@ -523,7 +523,7 @@ public static function postInstallCmd($installerInfo, $event) {
523523
public static function postUpdateCmd($installerInfo, $event) {
524524

525525
if (!$installerInfo["packagesRemove"]) {
526-
self::packagesInstall($installerInfo);
526+
self::packagesInstall($installerInfo, $event);
527527
}
528528

529529
}
@@ -581,7 +581,9 @@ protected static function removeDots($path) {
581581
* Handle some Pattern Lab specific tasks based on what's found in the package's composer.json file on install
582582
* @param {Array} the info culled from installing various pattern lab-related packages
583583
*/
584-
protected static function packagesInstall($installerInfo) {
584+
protected static function packagesInstall($installerInfo, $event) {
585+
586+
print_r($event->getArguments());
585587

586588
// initialize a bunch of stuff like config and console
587589
self::init();

0 commit comments

Comments
 (0)