/** * @param mixed[] $context * @throws InstantiationException */ public function __construct($context = []) { if (!isset($context['runtime'])) { throw new InstantiationException('[' . __CLASS__ . '] could not been initialized.'); } $this->runtime = $context['runtime']; unset($context['runtime']); parent::__construct($context); }
/** * @param mixed[] $context */ public function __construct($context = []) { $this->model = $context['model']; $this->queue =& $context['queue']; parent::__construct($context); }