| 1 | <?php |
||
| 24 | class HmacViewHelper extends AbstractViewHelper |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Hash Service |
||
| 28 | * |
||
| 29 | * @var \TYPO3\CMS\Extbase\Security\Cryptography\HashService |
||
| 30 | * */ |
||
| 31 | protected $hashService; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * DI for $hashService |
||
| 35 | * |
||
| 36 | * @param \TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService |
||
| 37 | */ |
||
| 38 | public function injectHashService(\TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns the hmac for the given registration in order to cancel the registration |
||
| 45 | * |
||
| 46 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Registration $registration Registration |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function render($registration) |
||
| 58 | } |
||
| 59 |