Completed
Push — development ( 6b83c1...4f1043 )
by Torben
11:42
created

AbstractController   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 241
Duplicated Lines 0 %

Coupling/Cohesion

Components 14
Dependencies 0

Importance

Changes 0
Metric Value
wmc 14
lcom 14
cbo 0
dl 0
loc 241
rs 10
c 0
b 0
f 0

14 Methods

Rating   Name   Duplication   Size   Complexity  
A injectCalendarService() 0 4 1
A injectCategoryRepository() 0 5 1
A injectEventRepository() 0 4 1
A injectHashService() 0 4 1
A injectIcalendarService() 0 4 1
A injectLocationRepository() 0 5 1
A injectNotificationService() 0 4 1
A injectOrganisatorRepository() 0 5 1
A injectPaymentService() 0 4 1
A injectRegistrationRepository() 0 5 1
A injectRegistrationService() 0 4 1
A injectUtilityService() 0 4 1
A injectFieldRepository() 0 5 1
A signalDispatch() 0 4 1
1
<?php
2
namespace DERHANSEN\SfEventMgt\Controller;
3
4
/*
5
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
6
 *
7
 * For the full copyright and license information, please read the
8
 * LICENSE.txt file that was distributed with this source code.
9
 */
10
11
/**
12
 * EventController
13
 *
14
 * @author Torben Hansen <[email protected]>
15
 */
16
abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
17
{
18
    /**
19
     * EventRepository
20
     *
21
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository
22
     */
23
    protected $eventRepository = null;
24
25
    /**
26
     * Registration repository
27
     *
28
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository
29
     */
30
    protected $registrationRepository = null;
31
32
    /**
33
     * Category repository
34
     *
35
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\CategoryRepository
36
     */
37
    protected $categoryRepository = null;
38
39
    /**
40
     * Location repository
41
     *
42
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository
43
     */
44
    protected $locationRepository = null;
45
46
    /**
47
     * Organisator repository
48
     *
49
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\OrganisatorRepository
50
     */
51
    protected $organisatorRepository = null;
52
53
    /**
54
     * Notification Service
55
     *
56
     * @var \DERHANSEN\SfEventMgt\Service\NotificationService
57
     */
58
    protected $notificationService = null;
59
60
    /**
61
     * ICalendar Service
62
     *
63
     * @var \DERHANSEN\SfEventMgt\Service\ICalendarService
64
     */
65
    protected $icalendarService = null;
66
67
    /**
68
     * Hash Service
69
     *
70
     * @var \TYPO3\CMS\Extbase\Security\Cryptography\HashService
71
     */
72
    protected $hashService;
73
74
    /**
75
     * RegistrationService
76
     *
77
     * @var \DERHANSEN\SfEventMgt\Service\RegistrationService
78
     */
79
    protected $registrationService = null;
80
81
    /**
82
     * CalendarService
83
     *
84
     * @var \DERHANSEN\SfEventMgt\Service\CalendarService
85
     */
86
    protected $calendarService = null;
87
88
    /**
89
     * UtilityService
90
     *
91
     * @var \DERHANSEN\SfEventMgt\Service\UtilityService
92
     */
93
    protected $utilityService = null;
94
95
    /**
96
     * PaymentMethodService
97
     *
98
     * @var \DERHANSEN\SfEventMgt\Service\PaymentService
99
     */
100
    protected $paymentService = null;
101
102
    /**
103
     * FieldRepository
104
     *
105
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\Registration\FieldRepository
106
     */
107
    protected $fieldRepository = null;
108
109
    /**
110
     * DI for $calendarService
111
     *
112
     * @param \DERHANSEN\SfEventMgt\Service\CalendarService $calendarService
113
     */
114
    public function injectCalendarService(\DERHANSEN\SfEventMgt\Service\CalendarService $calendarService)
115
    {
116
        $this->calendarService = $calendarService;
117
    }
118
119
    /**
120
     * DI for $categoryRepository
121
     *
122
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\CategoryRepository $categoryRepository
123
     */
124
    public function injectCategoryRepository(
125
        \DERHANSEN\SfEventMgt\Domain\Repository\CategoryRepository $categoryRepository
126
    ) {
127
        $this->categoryRepository = $categoryRepository;
128
    }
129
130
    /**
131
     * DI for $eventRepository
132
     *
133
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository
134
     */
135
    public function injectEventRepository(\DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository)
136
    {
137
        $this->eventRepository = $eventRepository;
138
    }
139
140
    /**
141
     * DI for $hashService
142
     *
143
     * @param \TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService
144
     */
145
    public function injectHashService(\TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService)
146
    {
147
        $this->hashService = $hashService;
148
    }
149
150
    /**
151
     * DI for $icalendarService
152
     *
153
     * @param \DERHANSEN\SfEventMgt\Service\ICalendarService $icalendarService
154
     */
155
    public function injectIcalendarService(\DERHANSEN\SfEventMgt\Service\ICalendarService $icalendarService)
156
    {
157
        $this->icalendarService = $icalendarService;
158
    }
159
160
    /**
161
     * DI for $locationRepository
162
     *
163
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository $locationRepository
164
     */
165
    public function injectLocationRepository(
166
        \DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository $locationRepository
167
    ) {
168
        $this->locationRepository = $locationRepository;
169
    }
170
171
    /**
172
     * DI for $notificationService
173
     *
174
     * @param \DERHANSEN\SfEventMgt\Service\NotificationService $notificationService
175
     */
176
    public function injectNotificationService(\DERHANSEN\SfEventMgt\Service\NotificationService $notificationService)
177
    {
178
        $this->notificationService = $notificationService;
179
    }
180
181
    /**
182
     * DI for $organisatorRepository
183
     *
184
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\OrganisatorRepository $organisatorRepository
185
     */
186
    public function injectOrganisatorRepository(
187
        \DERHANSEN\SfEventMgt\Domain\Repository\OrganisatorRepository $organisatorRepository
188
    ) {
189
        $this->organisatorRepository = $organisatorRepository;
190
    }
191
192
    /**
193
     * DI for $paymentService
194
     *
195
     * @param \DERHANSEN\SfEventMgt\Service\PaymentService $paymentService
196
     */
197
    public function injectPaymentService(\DERHANSEN\SfEventMgt\Service\PaymentService $paymentService)
198
    {
199
        $this->paymentService = $paymentService;
200
    }
201
202
    /**
203
     * DI for $registrationRepository
204
     *
205
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository $registrationRepository
206
     */
207
    public function injectRegistrationRepository(
208
        \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository $registrationRepository
209
    ) {
210
        $this->registrationRepository = $registrationRepository;
211
    }
212
213
    /**
214
     * DI for $registrationService
215
     *
216
     * @param \DERHANSEN\SfEventMgt\Service\RegistrationService $registrationService
217
     */
218
    public function injectRegistrationService(\DERHANSEN\SfEventMgt\Service\RegistrationService $registrationService)
219
    {
220
        $this->registrationService = $registrationService;
221
    }
222
223
    /**
224
     * DI for $utilityService
225
     *
226
     * @param \DERHANSEN\SfEventMgt\Service\UtilityService $utilityService
227
     */
228
    public function injectUtilityService(\DERHANSEN\SfEventMgt\Service\UtilityService $utilityService)
229
    {
230
        $this->utilityService = $utilityService;
231
    }
232
233
    /**
234
     * DI for $fieldRepository
235
     *
236
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\Registration\FieldRepository $fieldRepository
237
     */
238
    public function injectFieldRepository(
239
        \DERHANSEN\SfEventMgt\Domain\Repository\Registration\FieldRepository $fieldRepository
240
    ) {
241
        $this->fieldRepository = $fieldRepository;
242
    }
243
244
    /**
245
     * Dispatches the signal with the given name
246
     *
247
     * @param string $signalClassName
248
     * @param string $signalName
249
     * @param array $arguments
250
     * @return mixed
251
     */
252
    protected function signalDispatch($signalClassName, $signalName, array $arguments)
253
    {
254
        return $this->signalSlotDispatcher->dispatch($signalClassName, $signalName, $arguments);
255
    }
256
}
257