diff options
author | xue <> | 2005-12-11 01:08:27 +0000 |
---|---|---|
committer | xue <> | 2005-12-11 01:08:27 +0000 |
commit | d8d14cd6b09a158c5010356bf14aee76f60a900b (patch) | |
tree | 842bb4cebcfa10d7041c643128c5d639984e97bc /framework/TApplication.php | |
parent | ed7d3b719ee58d224f50017505dc3c938de72987 (diff) |
Fixed a syntax error in PradoBase class, which would cause a recursive raising of exceptions.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index 7556d94c..6e43fbf1 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -214,12 +214,12 @@ class TApplication extends TComponent public function __construct($configFile,$cacheFile=null) { parent::__construct(); + Prado::setApplication($this); if(($this->_configFile=realpath($configFile))===false || !is_file($this->_configFile)) throw new TIOException('application_configfile_inexistent',$configFile); $this->_cacheFile=$cacheFile; // generates unique ID by hashing the configuration file path $this->_uniqueID=md5($this->_configFile); - Prado::setApplication($this); } @@ -230,8 +230,6 @@ class TApplication extends TComponent */ public function run() { - //init the error handlers - $this->applyDefaultExceptionHandlers(); try { $this->initApplication($this->_configFile,$this->_cacheFile); @@ -257,13 +255,6 @@ class TApplication extends TComponent } /** - * Sets up error handler to convert PHP errors into exceptions that can be caught. - */ - protected function applyDefaultExceptionHandlers() - { - } - - /** * Completes current request processing. * This method can be used to exit the application lifecycles after finishing * the current cycle. |