mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
24 lines
528 B
PHP
24 lines
528 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)
|
|
{
|
|
$service = Injector::inst()->create('UserFormsUpgradeService');
|
|
$service->log("Upgrading userforms module");
|
|
$service->setQuiet(false)
|
|
->run();
|
|
$service->log("Done");
|
|
}
|
|
}
|