function __construct($name, lmbConf $conf) { $this->setName($name); if (!isset(self::$default_conf)) { self::$default_conf = lmbToolkit::instance()->getConf('default_value.conf.php'); } $new_default_conf = $this->_prepareConf(self::$default_conf); $this->_setProjectParams($new_default_conf); $prepared_conf = $this->_prepareConf($conf); $this->_setProjectParams($prepared_conf); $this->repository = RepositoryFactory::create($prepared_conf); $this->orig_conf = $conf; }
/** * @return Repository */ public function createRepository() { return $this->repositoryFactory->create($this->name); }