| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 41 | public function getAuthenticatedParticipant() |
||
| 42 | { |
||
| 43 | $participant = $this->securityContext->getToken()->getUser(); |
||
| 44 | |||
| 45 | if (!is_object($participant) || !$participant instanceof ParticipantInterface) { |
||
| 46 | throw new AccessDeniedException('You must be logged in with a participant interface'); |
||
| 47 | } |
||
| 48 | |||
| 49 | return $participant; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |