Symfony A设计在composer更新后不显示的日历包事件
我的日历工作正常,事件显示了一段时间,但由于我昨天进行了Symfony A设计在composer更新后不显示的日历包事件,symfony,events,service,listener,Symfony,Events,Service,Listener,我的日历工作正常,事件显示了一段时间,但由于我昨天进行了composer更新,事件不再显示 当我在CalendarEventListener的构造函数中放置一个var\u dump()时,我可以看到它正在被调用。日历显示正确,但未显示事件,且未调用loadEvents()函数 app/config/routing.yml app/config/services.yml 我还尝试将services.yml和routing.yml放入src/CalendarBundle/Resources/conf
composer更新
,事件不再显示
当我在CalendarEventListener的构造函数中放置一个var\u dump()
时,我可以看到它正在被调用。日历显示正确,但未显示事件,且未调用loadEvents()函数
app/config/routing.yml
app/config/services.yml
我还尝试将services.yml和routing.yml放入src/CalendarBundle/Resources/config/
在Symfony探查器中,它显示在未调用事件下
calendar.load_events
0 "CalendarBundle\EventListener\CalendarEventListener::loadEvents()"
当我调试这些事件时,我得到以下结果
$ php bin/console debug:event-dispatcher
Registered Listeners Grouped by Event
=====================================
"calendar.load_events" event
----------------------------
------- ------------------------------------------------------------------ ----------
Order Callable Priority
------- ------------------------------------------------------------------ ----------
#1 CalendarBundle\EventListener\CalendarEventListener::loadEvents() 0
------- ------------------------------------------------------------------ ----------
很抱歉,这不是更新问题,而是数据问题。输入了一些导致错误的
NULL
日期。
我只有在重新建立基础并进行composer安装后才能看到错误
calendar.load_events
0 "CalendarBundle\EventListener\CalendarEventListener::loadEvents()"
$ php bin/console debug:event-dispatcher
Registered Listeners Grouped by Event
=====================================
"calendar.load_events" event
----------------------------
------- ------------------------------------------------------------------ ----------
Order Callable Priority
------- ------------------------------------------------------------------ ----------
#1 CalendarBundle\EventListener\CalendarEventListener::loadEvents() 0
------- ------------------------------------------------------------------ ----------