From 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 22 Jan 2015 09:14:12 +0100 Subject: Apply namespaces to class inheritances (pt1) --- framework/Exceptions/TErrorHandler.php | 6 ++++-- framework/Exceptions/TException.php | 4 +++- framework/Exceptions/THttpException.php | 1 + framework/Exceptions/TTemplateException.php | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) (limited to 'framework/Exceptions') diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php index 13d1203f..82a483a8 100644 --- a/framework/Exceptions/TErrorHandler.php +++ b/framework/Exceptions/TErrorHandler.php @@ -10,6 +10,8 @@ */ namespace Prado\Exceptions; +use \Prado\TApplicationMode; +use \Prado\Prado; /** * TErrorHandler class @@ -49,7 +51,7 @@ namespace Prado\Exceptions; * @package Prado\Exceptions * @since 3.0 */ -class TErrorHandler extends TModule +class TErrorHandler extends \Prado\TModule { /** * error template file basename @@ -149,7 +151,7 @@ class TErrorHandler extends TModule protected static function hideSecurityRelated($value, $exception=null) { $aRpl = array(); - if($exception !== null && $exception instanceof Exception) + if($exception !== null && $exception instanceof \Exception) { $aTrace = $exception->getTrace(); foreach($aTrace as $item) diff --git a/framework/Exceptions/TException.php b/framework/Exceptions/TException.php index fb1db200..faa46abf 100644 --- a/framework/Exceptions/TException.php +++ b/framework/Exceptions/TException.php @@ -10,6 +10,8 @@ */ namespace Prado\Exceptions; +use Prado\Prado; +use Prado\TPropertyValue; /** * TException class @@ -32,7 +34,7 @@ namespace Prado\Exceptions; * @package Prado\Exceptions * @since 3.0 */ -class TException extends Exception +class TException extends \Exception { private $_errorCode=''; static $_messageCache=array(); diff --git a/framework/Exceptions/THttpException.php b/framework/Exceptions/THttpException.php index 883c2b63..39649c5d 100644 --- a/framework/Exceptions/THttpException.php +++ b/framework/Exceptions/THttpException.php @@ -10,6 +10,7 @@ */ namespace Prado\Exceptions; +use Prado\TPropertyValue; /** * THttpException class diff --git a/framework/Exceptions/TTemplateException.php b/framework/Exceptions/TTemplateException.php index 4b58df10..25b5caa5 100644 --- a/framework/Exceptions/TTemplateException.php +++ b/framework/Exceptions/TTemplateException.php @@ -10,6 +10,7 @@ */ namespace Prado\Exceptions; +use Prado\TPropertyValue; /** * TTemplateException class -- cgit v1.2.3