summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2005-12-27 03:46:55 +0000
committerxue <>2005-12-27 03:46:55 +0000
commite62f17f80a7cfd6f89f74fe6f2062850f54d1477 (patch)
treefc757968ccde20e14ca1f80a1ff6dc51f9e8d636 /framework
parent08b59ff62c4dfc98674c263269807798b6a83463 (diff)
Diffstat (limited to 'framework')
-rw-r--r--framework/TApplication.php2
-rw-r--r--framework/core.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 5d264546..716c35b5 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -878,6 +878,8 @@ class TApplication extends TComponent
public function onRunService($param)
{
$this->raiseEvent('RunService',$this,$param);
+ if($this->_service)
+ $this->_service->run();
}
/**
diff --git a/framework/core.php b/framework/core.php
index 1196d3c4..772cd384 100644
--- a/framework/core.php
+++ b/framework/core.php
@@ -381,7 +381,6 @@ abstract class TService extends TComponent implements IService
*/
public function init($application,$config)
{
- $application->attachEventHandler('RunService',array($this,'run'));
}
/**