summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorxue <>2005-11-11 22:45:22 +0000
committerxue <>2005-11-11 22:45:22 +0000
commit51083f666005194dbed2e6963c823c08393a3a80 (patch)
treeea9c175659a0e0ad3036e2930ed048cf188dee0b /framework/TApplication.php
parentcb9ad614fe9e811a1565878ffbfb37803fa30486 (diff)
Enhanced page service configuration parsing. Content included between opening and closing page service tag in app config is now parsed.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 55c1df6c..70b6a9ff 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -141,7 +141,8 @@ class TApplication extends TComponent implements IApplication
{
parent::__construct();
Prado::setApplication($this);
- $this->_configFile=$configFile;
+ if(($this->_configFile=realpath($configFile))===false)
+ throw new TIOException('application_configfile_invalid',$configFile);
$this->_cacheFile=$cacheFile;
}
@@ -207,6 +208,14 @@ class TApplication extends TComponent implements IApplication
}
/**
+ * @return string configuration file path
+ */
+ public function getConfigurationFile()
+ {
+ return $this->_configFile;
+ }
+
+ /**
* @return IService the currently requested service
*/
public function getService()