Symfony 4.2 Problem with FOS Comment Bundle, could not load routing.yaml

710 Views Asked by At

I am struggling with installation of FOS Comment Bundle. I have Symfony v 4.2.1. I followed instructions from documentation: https://github.com/FriendsOfSymfony/FOSCommentBundle/blob/master/Resources/doc/1-setting_up_the_bundle.md

I ommitted only this part: assetic: bundles: [ "FOSCommentBundle" ] Because assetic is not working with Symfony ^4. I installed assets by: bin/console assets:install

I get that error:

LoadException: Cannot load resource "@FOSCommentBundle/Resources/config/routing.yml". Make sure the "FOSCommentBundle" bundle is correctly registered and loaded in the application kernel class. If the bundle is registered, make sure the bundle path "@FOSCommentBundle/Resources/config/routing.yml" is not empty.)

Routes.yaml:

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

I did not find any solution. Anyone knows what should I do or know any alternative bundle to comments' threads?

0

There are 0 best solutions below