コード例 #1
0
ファイル: Cache.php プロジェクト: jymsy/sky2
 public function init()
 {
     parent::init();
     if ($this->keyPrefix === null) {
         $this->keyPrefix = \Sky\Sky::$app->getId();
     }
 }
コード例 #2
0
ファイル: Ftp.php プロジェクト: jymsy/sky2
 /**
  * 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);
     }
 }