mirror of https://github.com/sualko/cloud_bbb
refactor: remove obsolete config injection
parent
e864f202ea
commit
dd7bd97cb3
|
@ -12,7 +12,6 @@ use OCP\AppFramework\Http\RedirectResponse;
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
use OCP\IURLGenerator;
|
use OCP\IURLGenerator;
|
||||||
use OCP\IUserSession;
|
use OCP\IUserSession;
|
||||||
use OCP\IConfig;
|
|
||||||
use OCA\BigBlueButton\Service\RoomService;
|
use OCA\BigBlueButton\Service\RoomService;
|
||||||
use OCP\AppFramework\Controller;
|
use OCP\AppFramework\Controller;
|
||||||
use OCP\AppFramework\Http\TemplateResponse;
|
use OCP\AppFramework\Http\TemplateResponse;
|
||||||
|
@ -33,9 +32,6 @@ class JoinController extends Controller {
|
||||||
/** @var IUserSession */
|
/** @var IUserSession */
|
||||||
private $userSession;
|
private $userSession;
|
||||||
|
|
||||||
/** @var IConfig */
|
|
||||||
private $config;
|
|
||||||
|
|
||||||
/** @var API */
|
/** @var API */
|
||||||
private $api;
|
private $api;
|
||||||
|
|
||||||
|
@ -48,7 +44,6 @@ class JoinController extends Controller {
|
||||||
RoomService $service,
|
RoomService $service,
|
||||||
IURLGenerator $urlGenerator,
|
IURLGenerator $urlGenerator,
|
||||||
IUserSession $userSession,
|
IUserSession $userSession,
|
||||||
IConfig $config,
|
|
||||||
API $api,
|
API $api,
|
||||||
Permission $permission
|
Permission $permission
|
||||||
) {
|
) {
|
||||||
|
@ -57,7 +52,6 @@ class JoinController extends Controller {
|
||||||
$this->service = $service;
|
$this->service = $service;
|
||||||
$this->urlGenerator = $urlGenerator;
|
$this->urlGenerator = $urlGenerator;
|
||||||
$this->userSession = $userSession;
|
$this->userSession = $userSession;
|
||||||
$this->config = $config;
|
|
||||||
$this->api = $api;
|
$this->api = $api;
|
||||||
$this->permission = $permission;
|
$this->permission = $permission;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,6 @@ use PHPUnit\Framework\TestCase;
|
||||||
use OCP\AppFramework\Http\RedirectResponse;
|
use OCP\AppFramework\Http\RedirectResponse;
|
||||||
use OCP\IURLGenerator;
|
use OCP\IURLGenerator;
|
||||||
use OCP\IUserSession;
|
use OCP\IUserSession;
|
||||||
use OCP\IConfig;
|
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
use OCP\IUser;
|
use OCP\IUser;
|
||||||
use OCA\BigBlueButton\Service\RoomService;
|
use OCA\BigBlueButton\Service\RoomService;
|
||||||
|
@ -22,7 +21,6 @@ class JoinControllerTest extends TestCase {
|
||||||
private $request;
|
private $request;
|
||||||
private $service;
|
private $service;
|
||||||
private $userSession;
|
private $userSession;
|
||||||
private $config;
|
|
||||||
private $urlGenerator;
|
private $urlGenerator;
|
||||||
private $controller;
|
private $controller;
|
||||||
private $api;
|
private $api;
|
||||||
|
@ -35,7 +33,6 @@ class JoinControllerTest extends TestCase {
|
||||||
$this->request = $this->createMock(IRequest::class);
|
$this->request = $this->createMock(IRequest::class);
|
||||||
$this->service = $this->createMock(RoomService::class);
|
$this->service = $this->createMock(RoomService::class);
|
||||||
$this->userSession = $this->createMock(IUserSession::class);
|
$this->userSession = $this->createMock(IUserSession::class);
|
||||||
$this->config = $this->createMock(IConfig::class);
|
|
||||||
$this->urlGenerator = $this->createMock(IURLGenerator::class);
|
$this->urlGenerator = $this->createMock(IURLGenerator::class);
|
||||||
$this->api = $this->createMock(API::class);
|
$this->api = $this->createMock(API::class);
|
||||||
$this->permission = $this->createMock(Permission::class);
|
$this->permission = $this->createMock(Permission::class);
|
||||||
|
@ -46,7 +43,6 @@ class JoinControllerTest extends TestCase {
|
||||||
$this->service,
|
$this->service,
|
||||||
$this->urlGenerator,
|
$this->urlGenerator,
|
||||||
$this->userSession,
|
$this->userSession,
|
||||||
$this->config,
|
|
||||||
$this->api,
|
$this->api,
|
||||||
$this->permission
|
$this->permission
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue