Skip to content

Commit

Permalink
ApplicationExtension: fixed auto-detection of debugger option
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk authored and dg committed Feb 9, 2016
1 parent 6f3447b commit 2dd99fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/Bridges/ApplicationDI/ApplicationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

use Nette;
use Nette\Application\UI;
use Tracy;
use Composer\Autoload\ClassLoader;


/**
Expand Down Expand Up @@ -41,7 +39,7 @@ class ApplicationExtension extends Nette\DI\CompilerExtension

public function __construct($debugMode = FALSE, array $scanDirs = NULL, $tempDir = NULL)
{
$this->defaults['debugger'] = class_exists('Tracy\IBarPanel');
$this->defaults['debugger'] = interface_exists('Tracy\IBarPanel');
$this->defaults['scanDirs'] = (array) $scanDirs;
$this->defaults['scanComposer'] = class_exists('Composer\Autoload\ClassLoader');
$this->defaults['catchExceptions'] = !$debugMode;
Expand Down
3 changes: 1 addition & 2 deletions src/Bridges/ApplicationDI/RoutingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
namespace Nette\Bridges\ApplicationDI;

use Nette;
use Tracy;


/**
Expand All @@ -28,7 +27,7 @@ class RoutingExtension extends Nette\DI\CompilerExtension

public function __construct($debugMode = FALSE)
{
$this->defaults['debugger'] = class_exists('Tracy\IBarPanel');
$this->defaults['debugger'] = interface_exists('Tracy\IBarPanel');
$this->debugMode = $debugMode;
}

Expand Down

0 comments on commit 2dd99fc

Please sign in to comment.