X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fhttp-kernel%2FEventListener%2FDumpListener.php;fp=vendor%2Fsymfony%2Fhttp-kernel%2FEventListener%2FDumpListener.php;h=88acef318722e90c72c75a35cb3483ad2662e7e6;hp=06b8a030cfadd90191272d88a8c972b94602c962;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/symfony/http-kernel/EventListener/DumpListener.php b/vendor/symfony/http-kernel/EventListener/DumpListener.php index 06b8a030c..88acef318 100644 --- a/vendor/symfony/http-kernel/EventListener/DumpListener.php +++ b/vendor/symfony/http-kernel/EventListener/DumpListener.php @@ -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)); }