From e62f17f80a7cfd6f89f74fe6f2062850f54d1477 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 27 Dec 2005 03:46:55 +0000 Subject: --- framework/TApplication.php | 2 ++ framework/core.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'framework') 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')); } /** -- cgit v1.2.3