summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TControl.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r--framework/Web/UI/TControl.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php
index b0d353f3..21c633c7 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -263,6 +263,14 @@ class TControl extends TComponent
}
/**
+ * @return TPageService the page service
+ */
+ public function getService()
+ {
+ return Prado::getApplication()->getService();
+ }
+
+ /**
* @return THttpRequest the current user request
*/
public function getRequest()
@@ -296,12 +304,12 @@ class TControl extends TComponent
public function publishFile($file)
{
- return Prado::getApplication()->getService()->getAssetManager()->publishFile($file);
+ return $this->getService()->getAssetManager()->publishFile($file);
}
public function publishDirectory($directory)
{
- return Prado::getApplication()->getService()->getAssetManager()->publishDirectory($directory);
+ return $this->getService()->getAssetManager()->publishDirectory($directory);
}
public function getAsset($assetName)