/**
  * @return $this
  */
 public function init()
 {
     parent::init();
     // extension installation event listener
     $this->addEventListener(Event\Type\System\ExtensionInstall::toType(), function ($event) {
         return $this->onInstall($event);
     });
     return $this;
 }
Example #2
0
 public function testExtensionInstallation()
 {
     $extInstallationEvt = Event\Type\System\ExtensionInstall::create()->setComposerPackageName('phpcrystal/phpcrystal');
     $this->appPkg->dispatch($extInstallationEvt);
 }