@@ -279,13 +279,25 @@ public function activate(EventInterface $event)
279279 $ this ->loadConfig ($ configFile );
280280 }
281281
282- $ application ->getEventManager ()->trigger ($ application ::EVENT_AFTER_INSTALL );
282+ $ application ->getEventManager ()->trigger (
283+ $ application ::EVENT_AFTER_INSTALL ,
284+ null ,
285+ [
286+ 'applicationPath ' => $ application ->getPath () . DIRECTORY_SEPARATOR . $ build
287+ ]
288+ );
283289
284290 if (file_exists ($ application ->getPath () . DIRECTORY_SEPARATOR . 'current ' )) {
285291 unlink ($ application ->getPath () . DIRECTORY_SEPARATOR . 'current ' );
286292 }
287293
288- $ application ->getEventManager ()->trigger ($ application ::EVENT_BEFORE_ACTIVATE );
294+ $ application ->getEventManager ()->trigger (
295+ $ application ::EVENT_BEFORE_ACTIVATE ,
296+ null ,
297+ [
298+ 'applicationPath ' => $ application ->getPath () . DIRECTORY_SEPARATOR . $ build
299+ ]
300+ );
289301
290302 $ message = 'Starting ' . $ application ->getName () . ' ( ' . $ build . ') ' ;
291303 $ this ->getLogger ()->info ($ message );
@@ -295,7 +307,13 @@ public function activate(EventInterface $event)
295307 $ application ->getPath () . DIRECTORY_SEPARATOR . 'current '
296308 );
297309
298- $ application ->getEventManager ()->trigger ($ application ::EVENT_AFTER_ACTIVATE );
310+ $ application ->getEventManager ()->trigger (
311+ $ application ::EVENT_AFTER_ACTIVATE ,
312+ null ,
313+ [
314+ 'applicationPath ' => $ application ->getPath () . DIRECTORY_SEPARATOR . $ build
315+ ]
316+ );
299317
300318 $ message = $ application ->getName () . ' ( ' . $ build . ') has successfully started ' ;
301319 $ this ->getLogger ()->info ($ message );
0 commit comments