Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
This commit is contained in:
Jonas Rittershofer 2020-05-27 13:52:59 +02:00
Родитель 971821ad4a
Коммит 19fde80802
2 изменённых файлов: 15 добавлений и 3 удалений

Просмотреть файл

@ -38,6 +38,7 @@ use OCP\AppFramework\Http\TemplateResponse;
use OCP\IGroupManager;
use OCP\IInitialStateService;
use OCP\IL10N;
use OCP\ILogger;
use OCP\IRequest;
use OCP\IUser;
use OCP\IUserManager;
@ -64,13 +65,16 @@ class PageController extends Controller {
/** @var IL10N */
private $l10n;
/** @var ILogger */
private $logger;
/** @var IUserManager */
private $userManager;
/** @var IUserSession */
private $userSession;
/** @var Array
*
* Maximum String lengths, the database is set to store.
@ -91,6 +95,7 @@ class PageController extends Controller {
IGroupManager $groupManager,
IInitialStateService $initialStateService,
IL10N $l10n,
ILogger $logger,
IUserManager $userManager,
IUserSession $userSession) {
parent::__construct($appName, $request);
@ -104,6 +109,7 @@ class PageController extends Controller {
$this->groupManager = $groupManager;
$this->initialStateService = $initialStateService;
$this->l10n = $l10n;
$this->logger = $logger;
$this->userManager = $userManager;
$this->userSession = $userSession;
}

Просмотреть файл

@ -31,6 +31,7 @@ use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Db\IMapperException;
use OCP\IGroup;
use OCP\IGroupManager;
use OCP\ILogger;
use OCP\IUser;
use OCP\IUserManager;
use OCP\IUserSession;
@ -62,13 +63,17 @@ class FormsService {
/** @var IUserSession */
private $userSession;
/** @var ILogger */
private $logger;
public function __construct(FormMapper $formMapper,
QuestionMapper $questionMapper,
OptionMapper $optionMapper,
SubmissionMapper $submissionMapper,
IGroupManager $groupManager,
IUserManager $userManager,
IUserSession $userSession) {
IUserSession $userSession,
ILogger $logger) {
$this->formMapper = $formMapper;
$this->questionMapper = $questionMapper;
$this->optionMapper = $optionMapper;
@ -76,6 +81,7 @@ class FormsService {
$this->groupManager = $groupManager;
$this->userManager = $userManager;
$this->userSession = $userSession;
$this->logger = $logger;
}