summaryrefslogtreecommitdiff
path: root/framework/core.php
diff options
context:
space:
mode:
authorxue <>2006-02-17 05:19:25 +0000
committerxue <>2006-02-17 05:19:25 +0000
commit7b38480de52c1d042ea542e2d06913a8c9b645fc (patch)
tree67ff025fb171a5325ac8fdc75a281ce8a19a2bd5 /framework/core.php
parentae1c1995b2fec431afe7cca23b2697e1bef17baf (diff)
Add TApplicationComponent class and adjusted the relevant classes.
Diffstat (limited to 'framework/core.php')
-rw-r--r--framework/core.php24
1 files changed, 6 insertions, 18 deletions
diff --git a/framework/core.php b/framework/core.php
index 93d19002..c3a14c5d 100644
--- a/framework/core.php
+++ b/framework/core.php
@@ -22,6 +22,10 @@ define('PRADO_DIR',dirname(__FILE__));
*/
require_once(PRADO_DIR.'/TComponent.php');
/**
+ * Includes TApplicationComponent definition
+ */
+require_once(PRADO_DIR.'/TApplicationComponent.php');
+/**
* Includes exception definitions
*/
require_once(PRADO_DIR.'/Exceptions/TException.php');
@@ -264,7 +268,7 @@ interface IStatePersister
* @package System
* @since 3.0
*/
-abstract class TModule extends TComponent implements IModule
+abstract class TModule extends TApplicationComponent implements IModule
{
/**
* @var string module id
@@ -295,14 +299,6 @@ abstract class TModule extends TComponent implements IModule
{
$this->_id=$value;
}
-
- /**
- * @return TApplication current application instance
- */
- public function getApplication()
- {
- return Prado::getApplication();
- }
}
/**
@@ -316,7 +312,7 @@ abstract class TModule extends TComponent implements IModule
* @package System
* @since 3.0
*/
-abstract class TService extends TComponent implements IService
+abstract class TService extends TApplicationComponent implements IService
{
/**
* @var string service id
@@ -354,14 +350,6 @@ abstract class TService extends TComponent implements IService
public function run()
{
}
-
- /**
- * @return TApplication current application instance
- */
- public function getApplication()
- {
- return Prado::getApplication();
- }
}
/**