Sunnysideup\UpgradeToSilverstripe4\Tasks\Task::create
Creates all the singletons and puts them in the array of singletons. Depending on if they exist already or not.
While creating the new instances it also passes a reference to the ModuleUpgrader or MU for short.
Signature
public function create(ModuleUpgrader
$mu,
[array
$params = ] )
Parameters
$mu
— object- A reference to the ModuleUpgrader; to be passed on to all instantiated singletons
$params
— array- Params that should be passed on to the given Task once it is instantiated
Returns
- Task
- Returns the newly created task