mirror of
https://github.com/dg/dibi.git
synced 2025-08-13 01:24:06 +02:00
updated for Nette 2.0 beta
This commit is contained in:
@@ -26,11 +26,11 @@ if (version_compare(PHP_VERSION, '5.2.0', '<')) {
|
||||
/**
|
||||
* Compatibility with Nette
|
||||
*/
|
||||
if (interface_exists('Nette\\IDebugPanel')) {
|
||||
class_alias('Nette\\IDebugPanel', 'IDebugPanel');
|
||||
if (interface_exists('Nette\Diagnostics\IBarPanel')) {
|
||||
class_alias('Nette\Diagnostics\IBarPanel', 'IBarPanel');
|
||||
|
||||
} elseif (!interface_exists('IDebugPanel')) {
|
||||
interface IDebugPanel {}
|
||||
} elseif (!interface_exists('IBarPanel')) {
|
||||
interface IBarPanel {}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user