public function init() { parent::init(); if ($this->keyPrefix === null) { $this->keyPrefix = \Sky\Sky::$app->getId(); } }
/** * Initializes the component. * This method is required by {@link IApplicationComponent} and is invoked by application * when the EFtpComponent is used as an application component. * If you override this method, make sure to call the parent implementation * so that the component can be marked as initialized. */ public function init() { parent::init(); if ($this->autoConnect) { $this->setActive(true); } }