コード例 #1
0
ファイル: Signal.php プロジェクト: maslosoft/signals
 public function init()
 {
     if (!$this->isInitialized) {
         $this->reload();
     }
     if (!$this->di->isStored($this)) {
         $this->di->store($this);
     }
 }
コード例 #2
0
ファイル: Addendum.php プロジェクト: maslosoft/addendum
 /**
  * Initialize addendum and store configuration.
  * This should be called upon first intstance creation.
  *
  * @return Addendum
  */
 public function init()
 {
     if (!$this->di->isStored($this)) {
         (new Signal())->emit(new NamespacesSignal($this));
     }
     $this->di->store($this);
     return $this;
 }