1 | <?php |
||
24 | class UserRegistrationController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController |
||
25 | { |
||
26 | /** |
||
27 | * RegistrationService |
||
28 | * |
||
29 | * @var \DERHANSEN\SfEventMgt\Service\RegistrationService |
||
30 | */ |
||
31 | protected $registrationService; |
||
32 | |||
33 | /** |
||
34 | * RegistrationRespository |
||
35 | * |
||
36 | * @var \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository |
||
37 | */ |
||
38 | protected $registrationRepository; |
||
39 | |||
40 | /** |
||
41 | * DI for $registrationRepository |
||
42 | * |
||
43 | * @param \DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository $registrationRepository |
||
44 | */ |
||
45 | public function injectRegistrationRepository( |
||
50 | 1 | ||
51 | 1 | /** |
|
52 | 1 | * DI for $registrationService |
|
53 | 1 | * |
|
54 | 1 | * @param \DERHANSEN\SfEventMgt\Service\RegistrationService $registrationService |
|
55 | 1 | */ |
|
56 | 1 | public function injectRegistrationService(\DERHANSEN\SfEventMgt\Service\RegistrationService $registrationService) |
|
60 | |||
61 | /** |
||
62 | * Creates an user registration demand object with the given settings |
||
63 | * |
||
64 | * @param array $settings The settings |
||
65 | * |
||
66 | 1 | * @return \DERHANSEN\SfEventMgt\Domain\Model\Dto\UserRegistrationDemand |
|
67 | */ |
||
68 | 1 | public function createUserRegistrationDemandObjectFromSettings(array $settings) |
|
81 | |||
82 | /** |
||
83 | * Shows a list of all registration of the current frontend user |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | public function listAction() |
||
94 | } |
||
95 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: