/** * 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; }
public function __construct(Bootstrap $bootstrap) { parent::__construct($bootstrap->getDI()); $this->bootstrap = $bootstrap; $this->config = $bootstrap->getConfig(); }