Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
UpdateTranslatorActivityMaintenanceScript.php
Go to the documentation of this file.
1<?php
8namespace MediaWiki\Extension\Translate\Statistics;
9
10use Maintenance;
12
15 public function __construct() {
16 parent::__construct();
17 $this->addDescription( 'Updates cached translator activity statistics' );
18 $this->requireExtension( 'Translate' );
19 }
20
21 public function execute() {
22 Services::getInstance()->getTranslatorActivity()->updateAllLanguages();
23 $this->output( "Done.\n" );
24 }
25}
Minimal service container.
Definition Services.php:38