Source of file RewriteConstructors.php
Size: 0,922 Bytes - Last Modified: 2020-07-03T12:08:09+00:00
/var/www/docs.ssmods.com/process/src/src/Tasks/IndividualTasks/RewriteConstructors.php
12345678910111213141516171819202122232425262728293031323334353637383940 | <?php namespace Sunnysideup\UpgradeToSilverstripe4\Tasks\IndividualTasks; use Sunnysideup\UpgradeToSilverstripe4\Tasks\Task; /** * Delete the web root directory to allow for a fresh install. */ class RewriteConstructors extends Task { protected $taskStep = 's00'; public function getTitle() { return 'Constructor rewrite'; } public function getDescription() { return ' rewrites deprecated constructors to be compatible with PHP7.'; } public function runActualTask($params = []) { $this->mu()->execMe( $this->mu()->getAboveWebRootDirLocation(), 'php ' . $this->mu()->getWebRootDirLocation() . '--disable-class-file-create', 'create upgrade directory: ' . $this->mu()->getWebRootDirLocation(), false ); } protected function hasCommitAndPush() { return false; } } |