summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
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'));
}
/**