Exemplo n.º 1
0
 public function init()
 {
     if (!$this->isInitialized) {
         $this->reload();
     }
     if (!$this->di->isStored($this)) {
         $this->di->store($this);
     }
 }
Exemplo n.º 2
0
 /**
  * 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;
 }