public function beforeStart($front = null) { parent::beforeStart($front); foreach ($this->dependenceServiceDefinitions as $alias => $definition) { if (!$definition) { continue; } Wind::registeComponent($definition, $alias); } }
/** * 在frontBoot的onResponse时被调用 * * @return void */ public function beforeStart($front = null) { parent::beforeStart($front); Wekit::setapp('windid', Wekit::app()); }