/**
  * @api
  */
 public function __construct(\Composer\Package\CompletePackage $pkgInstance = null)
 {
     parent::__construct();
     $this->packageInstance = $pkgInstance;
     if ($pkgInstance) {
         $this->composerPackageName = $pkgInstance->getName();
     }
     $this->type = Event\TYPE_BROADCAST_POST_ORDER;
 }
Beispiel #2
0
 public function __construct(Console $consoleApp, Container $cliArgsContainer = null)
 {
     parent::__construct();
     $this->type = Event\TYPE_BROADCAST_LEVEL_ORDER;
     $this->cliArgsContainer = $cliArgsContainer;
     $this->consoleApp = $consoleApp;
     $this->commandInstance = $consoleApp->getCommandInstance();
     $this->commandName = $this->commandInstance && $this->commandInstance->getName();
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct();
     $this->type = Event\TYPE_BROADCAST_LEVEL_ORDER;
     $this->singleResultFlag = true;
 }
Beispiel #4
0
 public function __construct()
 {
     parent::__construct();
     $this->type = Event\TYPE_UNICAST_BIDIRECTIONAL;
     $this->setAutoTriggerEvent(Event\Type\Http\Response200::create());
 }