diff options
author | xue <> | 2006-02-08 21:06:54 +0000 |
---|---|---|
committer | xue <> | 2006-02-08 21:06:54 +0000 |
commit | 1f19172f3df377ca0e88bb230d6f374ebef41b91 (patch) | |
tree | 1ab31079fc583ec17144b67883bc2b4fd9895114 /framework/TApplication.php | |
parent | 9943fc0c6b3f7ffc5295a25206aa0b47091453ba (diff) |
Moved onExitApplication out of destructor.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php index 7118fc54..151ff803 100644 --- a/framework/TApplication.php +++ b/framework/TApplication.php @@ -85,7 +85,8 @@ require_once(PRADO_DIR.'/Web/Services/TPageService.php'); * - PostRunService : this event happens right after the requested service finishes running * - SaveState : this event happens when application needs to save its state * - PostSaveState : this event happens right after the application saves its state - * - EndRequest : this is the last stage an application runs + * - EndRequest : this is the last stage a request is being completed + * - ExitApplication : this is the last stage before application instance is destructed * - [destruct] : destruction of the application instance * Modules and services can attach their methods to one or several of the above * events and do appropriate processing when the events are raised. By this way, @@ -314,15 +315,6 @@ class TApplication extends TComponent } /** - * Destructor. - * It invokes {@link onExitApplication} method. - */ - public function __destruct() - { - $this->onExitApplication(); - } - - /** * Executes the lifecycles of the application. * This is the main entry function that leads to the running of the whole * Prado application. @@ -352,6 +344,7 @@ class TApplication extends TComponent { $this->onError($e); } + $this->onExitApplication(); } /** |