Beispiel #1
0
 /**
  * Set default base path of skeleton.
  *
  * @param $basePath
  * @return $this
  */
 public function setBasePath($basePath)
 {
     $this->bootstrap->getDI()->setShared('basePath', function () use($basePath) {
         return $basePath;
     });
     return $this;
 }
Beispiel #2
0
 public function __construct(Bootstrap $bootstrap)
 {
     parent::__construct($bootstrap->getDI());
     $this->bootstrap = $bootstrap;
     $this->config = $bootstrap->getConfig();
 }