Browse Source

Fix incorrect constructor signature

Fallback from c166c7b189
tags/1.1.22
Pranav Kant 3 years ago
parent
commit
70016ad4de
2 changed files with 3 additions and 2 deletions
  1. 2
    1
      controller/documentcontroller.php
  2. 1
    1
      tests/controller/documentcontrollertest.php

+ 2
- 1
controller/documentcontroller.php View File

@@ -19,6 +19,7 @@ use \OCP\AppFramework\Http\ContentSecurityPolicy;
use \OCP\AppFramework\Http\JSONResponse;
use \OCP\AppFramework\Http\TemplateResponse;

use \OCA\Richdocuments\AppConfig;
use \OCA\Richdocuments\Db;
use \OCA\Richdocuments\Helper;
use \OCA\Richdocuments\Storage;
@@ -53,7 +54,7 @@ class DocumentController extends Controller {
private $logger;
const ODT_TEMPLATE_PATH = '/assets/odttemplate.odt';

public function __construct($appName, IRequest $request, IConfig $settings, IConfig $appConfig, IL10N $l10n, $uid, ICacheFactory $cache, ILogger $logger){
public function __construct($appName, IRequest $request, IConfig $settings, AppConfig $appConfig, IL10N $l10n, $uid, ICacheFactory $cache, ILogger $logger){
parent::__construct($appName, $request);
$this->uid = $uid;
$this->l10n = $l10n;

+ 1
- 1
tests/controller/documentcontrollertest.php View File

@@ -31,7 +31,7 @@ class DocumentControllerTest extends \PHPUnit_Framework_TestCase {
->disableOriginalConstructor()
->getMock()
;
$this->appConfig = $this->getMockBuilder('\OCP\IConfig')
$this->appConfig = $this->getMockBuilder('\OCA\Richdocuments\AppConfig')
->disableOriginalConstructor()
->getMock()
;

Loading…
Cancel
Save