Allow us to find out where /public is to be found
This commit is contained in:
parent
573bd1bde1
commit
127b7ad389
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue