}
}
+ /**
+ * Returns the base path for projects that should be automatically imported.
+ *
+ * @return string
+ */
+ public function getDevtoolsImportPath() {
+ return (isset($this->configuration['configuration']['devtools']) && !empty($this->configuration['configuration']['devtools']['importFromPath'])) ? $this->configuration['configuration']['devtools']['importFromPath'] : '';
+ }
+
/**
* Returns the raw configuration data.
*
namespace wcf\system\package;
use wcf\data\application\Application;
use wcf\data\application\ApplicationEditor;
+use wcf\data\devtools\project\DevtoolsProjectAction;
use wcf\data\language\category\LanguageCategory;
use wcf\data\language\LanguageEditor;
use wcf\data\language\LanguageList;
]
]))->executeAction();
}
+
+ if (($importPath = DevtoolsSetup::getInstance()->getDevtoolsImportPath()) !== '') {
+ (new DevtoolsProjectAction([], 'quickSetup', [
+ 'path' => $importPath
+ ]))->executeAction();
+ }
}
// update options.inc.php