Ejemplo n.º 1
0
 /**
  * Try to build the object, if we can't return this class
  *
  * @return $this
  */
 public function make()
 {
     $this->instance = parent::make();
     return $this;
 }
Ejemplo n.º 2
0
Archivo: DI.php Proyecto: smeeckaert/di
 /**
  * @return static
  */
 public static function build()
 {
     $decorator = new Decorator(get_called_class());
     return $decorator->make();
 }