forked from fabarea/messenger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessageLayoutController.php
More file actions
44 lines (30 loc) · 1.42 KB
/
Copy pathMessageLayoutController.php
File metadata and controls
44 lines (30 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace Fab\Messenger\Controller;
use Fab\Messenger\Domain\Repository\MessageLayoutRepository;
use Fab\Messenger\Domain\Repository\MessengerRepositoryInterface;
use Fab\Messenger\Service\DataExportService;
use TYPO3\CMS\Backend\Template\ModuleTemplateFactory;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
class MessageLayoutController extends AbstractMessengerController
{
protected array $allowedColumns = ['uid', 'content', 'qualifier', 'hidden'];
protected array $defaultSelectedColumns = ['uid', 'content', 'qualifier', 'hidden'];
protected array $demandFields = ['content', 'qualifier'];
protected string $domainModel = 'messagelayout';
protected string $controller = 'MessageLayout';
protected string $action = 'index';
protected string $moduleName = 'MessengerTxMessengerM3';
protected string $table = 'tx_messenger_domain_model_messagelayout';
protected string $dataType = 'message-layout';
protected ?MessengerRepositoryInterface $repository;
protected bool $showNewButton = true;
public function __construct(
ModuleTemplateFactory $moduleTemplateFactory,
IconFactory $iconFactory,
DataExportService $dataExportService
) {
parent::__construct($moduleTemplateFactory, $iconFactory, $dataExportService);
$this->repository = GeneralUtility::makeInstance(MessageLayoutRepository::class);
}
}