Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / http-kernel / EventListener / DumpListener.php
index 06b8a030cfadd90191272d88a8c972b94602c962..88acef318722e90c72c75a35cb3483ad2662e7e6 100644 (file)
@@ -49,6 +49,10 @@ class DumpListener implements EventSubscriberInterface
 
     public static function getSubscribedEvents()
     {
+        if (!class_exists(ConsoleEvents::class)) {
+            return array();
+        }
+
         // Register early to have a working dump() as early as possible
         return array(ConsoleEvents::COMMAND => array('configure', 1024));
     }