silverstripe-userforms/code/tasks/UserFormsUpgradeTask.php
2015-08-10 13:15:59 +12:00

23 lines
458 B
PHP

<?php
/**
* Assists with upgrade of userforms to 3.0
*
* @author dmooyman
*/
class UserFormsUpgradeTask extends BuildTask {
protected $title = "UserForms 3.0 Migration Tool";
protected $description = "Upgrade tool for sites upgrading to userforms 3.0";
public function run($request) {
$this->log("Upgrading userforms module");
Injector::inst()
->create('UserFormsUpgradeService')
->setQuiet(false)
->run();
$this->log("Done");
}
}