Source of file WebrootUpdate.php
Size: 1,217 Bytes - Last Modified: 2020-07-03T12:08:09+00:00
/var/www/docs.ssmods.com/process/src/src/Tasks/IndividualTasks/WebrootUpdate.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | <?php namespace Sunnysideup\UpgradeToSilverstripe4\Tasks\IndividualTasks; use Sunnysideup\UpgradeToSilverstripe4\Tasks\Task; /** * This task runs the silverstripe upgrade task 'webroot' to configure * your project to use the public web root structure */ class WebrootUpdate extends Task { protected $param1 = ''; protected $param2 = ''; protected $rootDirForCommand = ''; protected $settings = ''; public function getTitle() { return 'Fix Folder Case'; } public function getDescription() { return ' Runs the silverstripe/upgrade task "webroot". See: https://github.com/silverstripe/silverstripe-upgrader#webroot. Configure your project to use the public web root structure introduced with SilverStripe 4.1'; } public function runActualTask($params = []) { $this->runSilverstripeUpgradeTask( 'webroot', $this->param1, $this->param2, $this->rootDirForCommand, $this->settings ); $this->setCommitMessage('MAJOR: adding webroot concept'); } public function hasCommitAndPush() { true; } } |