adesigns / calendar-bundle

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

adding the listener to config.yml #27

Closed ahmed91w closed 10 years ago

ahmed91w commented 10 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 10 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 10 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 10 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.