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