Completed
Push — development ( 640c04...189908 )
by Torben
09:05 queued 03:50
created

AbstractController::injectRegistrationRepository()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
namespace DERHANSEN\SfEventMgt\Controller;
3
4
/*
5
 * This file is part of the TYPO3 CMS project.
6
 *
7
 * It is free software; you can redistribute it and/or modify it under
8
 * the terms of the GNU General Public License, either version 2
9
 * of the License, or any later version.
10
 *
11
 * For the full copyright and license information, please read the
12
 * LICENSE.txt file that was distributed with this source code.
13
 *
14
 * The TYPO3 project - inspiring people to share!
15
 */
16
17
/**
18
 * EventController
19
 *
20
 * @author Torben Hansen <[email protected]>
21
 */
22
abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
23
{
24
    /**
25
     * EventRepository
26
     *
27
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository
28
     */
29
    protected $eventRepository = null;
30
31
    /**
32
     * Registration repository
33
     *
34
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository
35
     */
36
    protected $registrationRepository = null;
37
38
    /**
39
     * Category repository
40
     *
41
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\CategoryRepository
42
     */
43
    protected $categoryRepository = null;
44
45
    /**
46
     * Location repository
47
     *
48
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository
49
     */
50
    protected $locationRepository = null;
51
52
    /**
53
     * Organisator repository
54
     *
55
     * @var \DERHANSEN\SfEventMgt\Domain\Repository\OrganisatorRepository
56
     */
57
    protected $organisatorRepository = null;
58
59
    /**
60
     * Notification Service
61
     *
62
     * @var \DERHANSEN\SfEventMgt\Service\NotificationService
63
     */
64
    protected $notificationService = null;
65
66
    /**
67
     * ICalendar Service
68
     *
69
     * @var \DERHANSEN\SfEventMgt\Service\ICalendarService
70
     */
71
    protected $icalendarService = null;
72
73
    /**
74
     * Hash Service
75
     *
76
     * @var \TYPO3\CMS\Extbase\Security\Cryptography\HashService
77
     */
78
    protected $hashService;
79
80
    /**
81
     * RegistrationService
82
     *
83
     * @var \DERHANSEN\SfEventMgt\Service\RegistrationService
84
     */
85
    protected $registrationService = null;
86
87
    /**
88
     * CalendarService
89
     *
90
     * @var \DERHANSEN\SfEventMgt\Service\CalendarService
91
     */
92
    protected $calendarService = null;
93
94
    /**
95
     * UtilityService
96
     *
97
     * @var \DERHANSEN\SfEventMgt\Service\UtilityService
98
     */
99
    protected $utilityService = null;
100
101
    /**
102
     * PaymentMethodService
103
     *
104
     * @var \DERHANSEN\SfEventMgt\Service\PaymentService
105
     */
106
    protected $paymentService = null;
107
    
108
    /**
109
     * DI for $calendarService
110
     *
111
     * @param \DERHANSEN\SfEventMgt\Service\CalendarService $calendarService
112
     */
113
    public function injectCalendarService(\DERHANSEN\SfEventMgt\Service\CalendarService $calendarService)
114
    {
115
        $this->calendarService = $calendarService;
116
    }
117
118
    /**
119
     * DI for $categoryRepository
120
     *
121
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\CategoryRepository $categoryRepository
122
     */
123
    public function injectCategoryRepository(
124
        \DERHANSEN\SfEventMgt\Domain\Repository\CategoryRepository $categoryRepository
125
    ) {
126
        $this->categoryRepository = $categoryRepository;
127
    }
128
129
    /**
130
     * DI for $eventRepository
131
     *
132
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository
133
     */
134
    public function injectEventRepository(\DERHANSEN\SfEventMgt\Domain\Repository\EventRepository $eventRepository)
135
    {
136
        $this->eventRepository = $eventRepository;
137
    }
138
139
    /**
140
     * DI for $hashService
141
     *
142
     * @param \TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService
143
     */
144
    public function injectHashService(\TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService)
145
    {
146
        $this->hashService = $hashService;
147
    }
148
149
    /**
150
     * DI for $icalendarService
151
     *
152
     * @param \DERHANSEN\SfEventMgt\Service\ICalendarService $icalendarService
153
     */
154
    public function injectIcalendarService(\DERHANSEN\SfEventMgt\Service\ICalendarService $icalendarService)
155
    {
156
        $this->icalendarService = $icalendarService;
157
    }
158
159
    /**
160
     * DI for $locationRepository
161
     *
162
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository $locationRepository
163
     */
164
    public function injectLocationRepository(
165
        \DERHANSEN\SfEventMgt\Domain\Repository\LocationRepository $locationRepository
166
    ) {
167
        $this->locationRepository = $locationRepository;
168
    }
169
170
    /**
171
     * DI for $notificationService
172
     *
173
     * @param \DERHANSEN\SfEventMgt\Service\NotificationService $notificationService
174
     */
175
    public function injectNotificationService(\DERHANSEN\SfEventMgt\Service\NotificationService $notificationService)
176
    {
177
        $this->notificationService = $notificationService;
178
    }
179
180
    /**
181
     * DI for $organisatorRepository
182
     *
183
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\OrganisatorRepository $organisatorRepository
184
     */
185
    public function injectOrganisatorRepository(
186
        \DERHANSEN\SfEventMgt\Domain\Repository\OrganisatorRepository $organisatorRepository
187
    ) {
188
        $this->organisatorRepository = $organisatorRepository;
189
    }
190
191
    /**
192
     * DI for $paymentService
193
     *
194
     * @param \DERHANSEN\SfEventMgt\Service\PaymentService $paymentService
195
     */
196
    public function injectPaymentService(\DERHANSEN\SfEventMgt\Service\PaymentService $paymentService)
197
    {
198
        $this->paymentService = $paymentService;
199
    }
200
201
    /**
202
     * DI for $registrationRepository
203
     *
204
     * @param \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository $registrationRepository
205
     */
206
    public function injectRegistrationRepository(
207
        \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository $registrationRepository
208
    ) {
209
        $this->registrationRepository = $registrationRepository;
210
    }
211
212
    /**
213
     * DI for $registrationService
214
     *
215
     * @param \DERHANSEN\SfEventMgt\Service\RegistrationService $registrationService
216
     */
217
    public function injectRegistrationService(\DERHANSEN\SfEventMgt\Service\RegistrationService $registrationService)
218
    {
219
        $this->registrationService = $registrationService;
220
    }
221
222
    /**
223
     * DI for $utilityService
224
     *
225
     * @param \DERHANSEN\SfEventMgt\Service\UtilityService $utilityService
226
     */
227
    public function injectUtilityService(\DERHANSEN\SfEventMgt\Service\UtilityService $utilityService)
228
    {
229
        $this->utilityService = $utilityService;
230
    }
231
}
232