/** * @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; }
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(); }
public function __construct() { parent::__construct(); $this->type = Event\TYPE_BROADCAST_LEVEL_ORDER; $this->singleResultFlag = true; }
public function __construct() { parent::__construct(); $this->type = Event\TYPE_UNICAST_BIDIRECTIONAL; $this->setAutoTriggerEvent(Event\Type\Http\Response200::create()); }