Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Symfony A设计在composer更新后不显示的日历包事件_Symfony_Events_Service_Listener - Fatal编程技术网

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         
 ------- ------------------------------------------------------------------ ----------