adesigns / calendar-bundle

This bundle allows you to integrate the jQuery FullCalendar plugin into your Symfony2 application.
MIT License
97 stars 60 forks source link

adding the listener to config.yml #27

Closed ahmed91w closed 9 years ago

ahmed91w commented 9 years ago

Hi everyone I want to add the listener to confg.yml but I found a problem here is my code : services: ago.agobundle.calendar_listener: class: ago\agoBundle\EventListener\CalendarEventListener tags:

when I add " arguments: [%doctrine.orm.entity_manager%] " I came across this exception

screenshot-by-nimbus

mikeyudin commented 9 years ago

It looks like you are trying to inject the entity manager as a string, instead of the object. You need to inject the entity manager as an object. I think this is what your arguments should look like:

arguments: [@doctrine.orm.entity_manager]
ahmed91w commented 9 years ago

yes thank you i found the solution but i have a question why i can't move the events over the calendar?

mikeyudin commented 9 years ago

That is functionality that deals with FullCalendar, and is outside the scope of this bundle. You'll need to build extra functionality to do that. This bundle simply integrates symfony with fullcalendar and nothing else.