Skip to content

Files

Latest commit

 

History

History
23 lines (18 loc) · 625 Bytes

3-importing_foscommentbundle_routing.md

File metadata and controls

23 lines (18 loc) · 625 Bytes

Step 3: Import FOSCommentBundle routing

Import the bundle routing:

fos_comment_api:
    type: rest
    resource: "@FOSCommentBundle/Resources/config/routing.yml"
    prefix: /api
    defaults: { _format: html }

Note:

The type: rest part is important.

Note:

The defaults configuration may not be necessary unless you have changed FOSRestBundle's default format.

Continue to the next step! (final!)

When you're done. Continue with the final step: enabling the comments on a page: Step 4: Enable comments on a page.