friendsofsymfony/comment-bundle
FOSCommentBundle adds a full comment system to Symfony (3.4/4.4): threaded comment trees, embeddable threads, Doctrine ORM/MongoDB support, sortable trees, REST API via FOSRestBundle, event hooks, optional ACL, FOSUserBundle, Akismet, and markup parsing.
fos_comment_post, fos_comment_delete) at critical points in the comment lifecycle, enabling custom logic (e.g., notifications, analytics) without modifying core bundle code.fos_comment_get_thread, fos_comment_form) for embedding comments in templates, with minimal customization required for basic use cases./api/comments endpoint for programmatic access, useful for SPAs or mobile apps.stof/FOSCommentBundle).jms/serializer) are deprecated in Symfony 5+. May require custom serialization logic.createdAt and parent fields.composer require friendsofsymfony/comment-bundle.config/bundles.php (Symfony 4+) or AppKernel.php.Comment and Thread entities extending BaseComment/BaseThread.Vote entities and services.stof/FOSCommentBundle).fos_comment_post) for analytics.createdAt, parentId, and authorId.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Database connection issues | Comments unavailable | Retry logic, circuit breakers, read replicas. |
| Markup parser failures (XSS) | Security vulnerabilities | Strict HTMLPurifier config, input validation. |
| Event listener errors | Broken comment workflows |
How can I help you explore Laravel packages today?