Skip to content

Commit

Permalink
add XdebugHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Nov 6, 2018
1 parent 77a11c7 commit 9962c25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/rector
@@ -1,6 +1,7 @@
#!/usr/bin/env php
<?php declare(strict_types=1);

use Composer\XdebugHandler\XdebugHandler;
use Psr\Container\ContainerInterface;
use Rector\Console\Application;
use Symplify\PackageBuilder\Console\ThrowableRenderer;
Expand All @@ -11,6 +12,10 @@ gc_disable();
// Require Composer autoload.php
require_once __DIR__ . '/bootstrap.php';

$xdebug = new XdebugHandler('rector', '--ansi');
$xdebug->check();
unset($xdebug);

try {
/** @var ContainerInterface $container */
$container = require_once __DIR__ . '/container.php';
Expand Down
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -9,6 +9,7 @@
],
"require": {
"php": "^7.1",
"composer/xdebug-handler": "^1.3",
"jean85/pretty-package-versions": "^1.2",
"nette/robot-loader": "^3.1",
"nette/utils": "^2.5",
Expand Down

0 comments on commit 9962c25

Please sign in to comment.