summaryrefslogtreecommitdiff
path: root/framework/core.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/core.php')
-rw-r--r--framework/core.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/framework/core.php b/framework/core.php
index e43b1168..93d19002 100644
--- a/framework/core.php
+++ b/framework/core.php
@@ -295,6 +295,14 @@ abstract class TModule extends TComponent implements IModule
{
$this->_id=$value;
}
+
+ /**
+ * @return TApplication current application instance
+ */
+ public function getApplication()
+ {
+ return Prado::getApplication();
+ }
}
/**
@@ -346,6 +354,14 @@ abstract class TService extends TComponent implements IService
public function run()
{
}
+
+ /**
+ * @return TApplication current application instance
+ */
+ public function getApplication()
+ {
+ return Prado::getApplication();
+ }
}
/**