diff options
Diffstat (limited to 'maintenance/installPreConfigured.php')
-rw-r--r-- | maintenance/installPreConfigured.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/maintenance/installPreConfigured.php b/maintenance/installPreConfigured.php index 96b818c32d7d..8aa0f7b33dc2 100644 --- a/maintenance/installPreConfigured.php +++ b/maintenance/installPreConfigured.php @@ -81,6 +81,7 @@ class InstallPreConfigured extends Maintenance { } if ( $status->isOK() ) { + $this->output( "Installation complete.\n" ); return true; } else { $this->error( "Installation failed at task \"" . @@ -174,10 +175,26 @@ class InstallPreConfigured extends Maintenance { ] ] ) ); + foreach ( $this->getExtraTaskSpecs() as $spec ) { + $taskList->add( $taskFactory->create( $spec ) ); + } return $taskList; } /** + * Subclasses can override this to provide specification arrays for extra + * tasks to run during install. + * + * @see TaskFactory::create() + * @stable to override + * + * @return array + */ + protected function getExtraTaskSpecs() { + return []; + } + + /** * Create and configure a TaskRunner * * @param TaskList $taskList |