Allow us to find out where /public is to be found

This commit is contained in:
Thomas Gelf 2014-03-04 15:13:13 +00:00
parent 573bd1bde1
commit 127b7ad389
1 changed files with 12 additions and 0 deletions

View File

@ -233,6 +233,18 @@ abstract class ApplicationBootstrap
return $this->getDirWithSubDir($this->configDir, $subdir);
}
/**
* Get the path to the bootstrapping directory.
*
* This is usually /public for Web and EmbeddedWeb
*
* @return string
*/
public function getBootstrapDirecory()
{
return dirname($_SERVER['SCRIPT_FILENAME']);
}
/**
* Helper to glue directories together
*