Source of file Ss3ToSs4.php
Size: 3,627 Bytes - Last Modified: 2020-07-03T12:08:09+00:00
/var/www/docs.ssmods.com/process/src/src/UpgradeRecipes/Ss3ToSs4.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 | <?php namespace Sunnysideup\UpgradeToSilverstripe4\UpgradeRecipes; class Ss3ToSs4 extends BaseClass { /** * name of the branch to be created that we use a starter branch for upgrade * @var string branch name */ protected $nameOfUpgradeStarterBranch = 'upgrades/starting-point/ss4-upgrade'; /** * name of the branch created to do the upgrade * @var string branch name */ protected $nameOfTempBranch = 'upgrades/automatedbranch/3to4'; /** * The default namespace for all tasks * @var string */ protected $defaultNamespaceForTasks = 'Sunnysideup\UpgradeToSilverstripe4\Tasks\IndividualTasks'; ######################################### # TASKS ######################################### /** * An array of all the 'taskNames of the tasks that you wish to run during the execution of this upgrader task. * This array can be overriden in the example-index.php file that you create. * You can enter a full name space if you need to. * The final -x will be removed. We add -1 or -2 to run the same task multiple times. * * @var array */ protected $listOfTasks = [ //Step1: Prepare 'CheckThatFoldersAreReady' => [], 'ResetWebRootDir-1' => [], 'CheckoutDevMaster-1' => [], 'AddLegacyBranch' => [ 'nameOfLegacyBranch' => '3', ], 'AddUpgradeStarterBranch' => [], 'PHPCompatabilityCheck' => [], 'ResetWebRootDir-2' => [], 'CheckoutUpgradeStarterBranch' => [], 'AddTempUpgradeBranch' => [], 'ComposerCompatibilityCheckerStep1' => [], 'FixOutdatedPHPStyles' => [], 'FindFilesWithMoreThanOneClass' => [], 'CreatePublicFolder' => [], 'AddTableName' => [], 'ChangeControllerInitToProtected' => [], // 'AddTableNamePrivateStatic' => [], 'RemoveComposerRequirements' => [ 'package' => 'silverstripe/framework', ], 'RecomposeHomeBrew' => [], 'UpdateComposerRequirements' => [], 'RemoveInstallerFolder' => [], 'UpgradeDevBuild' => [], 'ResetWebRootDir-3' => [], //Step2: MoveToNewVersion 'ComposerInstallProject' => [], 'ComposerCompatibilityCheckerStep2' => [], 'Recompose' => [], //Step3: FixBeforeStart 'ChangeEnvironment' => [], 'MoveCodeToSRC' => [], 'MoveMysiteToApp' => [], 'MoveTemplates' => [], 'CreateClientFolder' => [], 'SearchAndReplace' => [], 'FixTemplateIncludeStatements' => [], 'FixRequirements' => [], 'UpperCaseFolderNamesForPSR4' => [], //Step4: CoreUpgrade 'AddNamespace' => [], 'Upgrade' => [], 'AddPSR4Autoloading' => [], //Step5: FixUpgrade 'FixBadUseStatements' => [], 'FixBadUseStatements' => [], 'InspectAPIChanges-1' => [], 'DatabaseMigrationLegacyYML' => [], 'Reorganise' => [], 'UpdateComposerModuleType' => [], 'AddVendorExposeDataToComposer' => [], 'InspectAPIChanges-2' => [], 'FixClassNamesWithUnderscores' => [], // 'WebRootUpdate' => [], //step6: Check 'ApplyPSR2' => [], 'AddDotEnvFile' => [], 'FinalDevBuild' => [], 'RunImageTask' => [], 'DoMigrateSiteTreeLinkingTask' => [], 'FindFilesWithSimpleUseStatements' => [], //step7: Lock-in 'FinaliseUpgradeWithMergeIntoMaster' => [], ]; protected $frameworkComposerRestraint = '~4@stable'; } |