Configuring the bundle is covered in the main Nines Bundles documentation. This documentation describes the bundle configuration options.
This bundle makes use of other Nines Bundles:
- Feedback Bundle to allow commenting on blog pages and posts
- User Bundle to manage user accounts
- Util Bundle for various bits that do not fit in other bundles
The configuration options are described below
# config/packages/nines_feedback.yaml
nines_feedback:
default_status: submitted
public_status: published
subject: New feedback received
sender: noreply@example.com
recipients:
- user@example.com
- another@example.com
default_status
: The name of the CommentStatus entity for newly submitted commentspublic_status
: The name of the CommentStatus entity for published commentssubject
: The text of the comment notification email subject linesender
: The sender address on the comment notification emailrecipients
: A list of email addresses to send comment notifications to.
The controllers will only allow users granted ROLE_FEEDBACK_ADMIN
access to create or edit content.
# config/packages/security.yaml
security:
# ...
role_hierarchy:
ROLE_ADMIN: [ ROLE_ADMIN, ... , ROLE_FEEDBACK_ADMIN, ... , ROLE_USER ]
Include this role in the user bundle configuration, so that it appears in the admin user edit form.
# config/packages/nines_user.yaml
nines_user:
roles: [ ROLE_ADMIN, ... , ROLE_FEEDBACK_ADMIN, ... , ROLE_USER ]