Merge "ApiVisualEditor: Move RESTbase initiation from construct() to execute()"

This commit is contained in:
jenkins-bot 2017-05-08 21:20:42 +00:00 committed by Gerrit Code Review
commit d4c9638508

View file

@ -25,7 +25,6 @@ class ApiVisualEditor extends ApiBase {
parent::__construct( $main, $name );
$this->veConfig = $config;
$this->serviceClient = new VirtualRESTServiceClient( new MultiHttpClient( [] ) );
$this->serviceClient->mount( '/restbase/', $this->getVRSObject() );
}
/**
@ -181,6 +180,8 @@ class ApiVisualEditor extends ApiBase {
}
public function execute() {
$this->serviceClient->mount( '/restbase/', $this->getVRSObject() );
$user = $this->getUser();
$params = $this->extractRequestParams();