From f8dc77db1804dee7beace5a4ad2cc36578672744 Mon Sep 17 00:00:00 2001 From: johnstevenson Date: Sun, 11 Mar 2018 18:00:03 +0000 Subject: [PATCH] Fix bc --- src/Composer/XdebugHandler.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/Composer/XdebugHandler.php b/src/Composer/XdebugHandler.php index 015ac808a..eb94e93f4 100644 --- a/src/Composer/XdebugHandler.php +++ b/src/Composer/XdebugHandler.php @@ -12,11 +12,20 @@ namespace Composer; -trigger_error('The ' . __NAMESPACE__ . '\XdebugHandler class is deprecated, use Composer\XdebugHandler\XdebugHandler instead.', E_USER_DEPRECATED); +use Symfony\Component\Console\Output\OutputInterface; + +trigger_error('The ' . __NAMESPACE__ . '\XdebugHandler class is deprecated, use Composer\XdebugHandler\XdebugHandler instead,', E_USER_DEPRECATED); /** * @deprecated use Composer\XdebugHandler\XdebugHandler instead */ -class XdebugHandler +class XdebugHandler extends XdebugHandler\XdebugHandler { + const ENV_ALLOW = 'COMPOSER_ALLOW_XDEBUG'; + const ENV_VERSION = 'COMPOSER_XDEBUG_VERSION'; + + public function __construct(OutputInterface $output) + { + parent::__construct('composer', '--ansi'); + } }