ancarebeca / FullCalendarBundle

Symfony3 integration with the library FullCalendar.js
36 stars 38 forks source link

service.yml config #39

Closed ibrasdev closed 6 years ago

ibrasdev commented 6 years ago

Hello,

When i add this to my services.xml my site dont run anymore, PHP error : does not contain valid YAML

`cmr.service.listener: class: CMRBundle\Listener\LoadDataListener tags:

Thanks

ancarebeca commented 6 years ago

Hi @ibrasdev, One question Is your Symfony services configuration file in xml or yml format? Because if your file is services.xml I don't understand why are you getting an invalid YAML.

Notice that your services file has the extension .xml and according to the error, your Symfony project seems to be using .yml.

There is an example of how you could define it using YAML: https://github.com/ancarebeca/full-calendar-example/blob/master/app/config/services.yml