Skip to content

Commit 27830c7

Browse files
authored
Update DebugHandlersListener.php
1 parent e9a236b commit 27830c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/DebugHandlersListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static function getSubscribedEvents()
137137
{
138138
$events = array(KernelEvents::REQUEST => array('configure', 2048));
139139

140-
if ('cli' === php_sapi_name() && defined('Symfony\Component\Console\ConsoleEvents::COMMAND')) {
140+
if ('cli' === PHP_SAPI && defined('Symfony\Component\Console\ConsoleEvents::COMMAND')) {
141141
$events[ConsoleEvents::COMMAND] = array('configure', 2048);
142142
}
143143

0 commit comments

Comments
 (0)