From 032468425640117dcf5f7320404ef388f55dfe2c Mon Sep 17 00:00:00 2001 From: Jan Galek Date: Thu, 1 Dec 2016 09:03:19 +0100 Subject: [PATCH] Fixed: Namespace for Nette 2.4 --- XDebugHelper.php | 2 +- composer.json | 4 ++-- readme.md | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/XDebugHelper.php b/XDebugHelper.php index f90c475..9890722 100644 --- a/XDebugHelper.php +++ b/XDebugHelper.php @@ -11,7 +11,7 @@ namespace NetteExtras; -use Nette\Diagnostics\IBarPanel; +use Tracy\IBarPanel; class XDebugHelper implements IBarPanel diff --git a/composer.json b/composer.json index c38d881..9ba22ee 100644 --- a/composer.json +++ b/composer.json @@ -9,8 +9,8 @@ } ], "require": { - "php": ">= 5.3.0", - "nette/nette": "2.*" + "php": ">= 5.6", + "tracy/tracy": "2.*" }, "require-dev": { "ext-xdebug": "*" diff --git a/readme.md b/readme.md index 0c3a1eb..b65bfe0 100644 --- a/readme.md +++ b/readme.md @@ -10,8 +10,8 @@ enables you to easily start and stop a Xdebug session. Requirements ------------ -* Nette Framework 2.0 -* PHP 5.3 or greater +* Nette Framework 2.3 +* PHP 5.6 or greater If you wish to run this extension on PHP 5.2, just remove the namespace and use block in XDebugHelper.php. @@ -22,9 +22,9 @@ Usage Simply register a new debug panel in your config.neon: - nette: - debugger: - bar: [NetteExtras\XDebugHelper()] + tracy: + bar: + - NetteExtras\XDebugHelper You can optionally specify your IDE key as the first parameter of the XDebugHelper constructor. Defaults to netbeans-xdebug, which is the most