johnstevenson 7 years ago
parent
commit
f8dc77db18
1 changed files with 11 additions and 2 deletions
  1. 11 2
      src/Composer/XdebugHandler.php

+ 11 - 2
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');
+    }
 }