Update DebugHandlersListener.php

This commit is contained in:
SpacePossum 2017-01-30 15:13:32 +01:00 committed by GitHub
parent 4aebd3a086
commit f9f862f6af

View File

@ -137,7 +137,7 @@ class DebugHandlersListener implements EventSubscriberInterface
{
$events = array(KernelEvents::REQUEST => array('configure', 2048));
if ('cli' === php_sapi_name() && defined('Symfony\Component\Console\ConsoleEvents::COMMAND')) {
if ('cli' === PHP_SAPI && defined('Symfony\Component\Console\ConsoleEvents::COMMAND')) {
$events[ConsoleEvents::COMMAND] = array('configure', 2048);
}