| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class CommentCreatedSubscriber extends CommentSubscriber implements EventSubscriberInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Send Comment to the database and set a flash message |
||
| 15 | * @param CommentEvent $event |
||
| 16 | */ |
||
| 17 | public function registerCommentToDatabase(CommentEvent $event) |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return array The event names to listen to |
||
| 25 | */ |
||
| 26 | public static function getSubscribedEvents() |
||
| 33 | } |