mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-27 17:40:16 +00:00
Add missing use statement
Removed another unused one, and cleaned up the doc block. Bug: T121283 Change-Id: I1a8b9920152e6d52ffb59de385fcc29c92f33c92
This commit is contained in:
parent
80703452ed
commit
0664ddbf94
|
@ -19,10 +19,10 @@
|
|||
namespace TextExtracts;
|
||||
|
||||
use ApiBase;
|
||||
use ApiResult;
|
||||
use ApiMain;
|
||||
use ApiQueryBase;
|
||||
use Config;
|
||||
use ConfigFactory;
|
||||
use FauxRequest;
|
||||
use MWTidy;
|
||||
use ParserCache;
|
||||
|
@ -241,13 +241,13 @@ class ApiQueryExtracts extends ApiQueryBase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param ApiQuery $query
|
||||
* @param \ApiQuery $query
|
||||
* @param string $action
|
||||
* @return TextExtracts\ApiQueryExtracts
|
||||
* @return ApiQueryExtracts
|
||||
*/
|
||||
public static function factory( $query, $action ) {
|
||||
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'textextracts' );
|
||||
return new TextExtracts\ApiQueryExtracts( $query, $action, $config );
|
||||
return new self( $query, $action, $config );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue