mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "ApiVisualEditor: Move RESTbase initiation from construct() to execute()"
This commit is contained in:
commit
d4c9638508
|
@ -25,7 +25,6 @@ class ApiVisualEditor extends ApiBase {
|
||||||
parent::__construct( $main, $name );
|
parent::__construct( $main, $name );
|
||||||
$this->veConfig = $config;
|
$this->veConfig = $config;
|
||||||
$this->serviceClient = new VirtualRESTServiceClient( new MultiHttpClient( [] ) );
|
$this->serviceClient = new VirtualRESTServiceClient( new MultiHttpClient( [] ) );
|
||||||
$this->serviceClient->mount( '/restbase/', $this->getVRSObject() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -181,6 +180,8 @@ class ApiVisualEditor extends ApiBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function execute() {
|
public function execute() {
|
||||||
|
$this->serviceClient->mount( '/restbase/', $this->getVRSObject() );
|
||||||
|
|
||||||
$user = $this->getUser();
|
$user = $this->getUser();
|
||||||
$params = $this->extractRequestParams();
|
$params = $this->extractRequestParams();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue