SilverStripe\Dev\Install\InstallEnvironmentAware
For classes which are aware of install, project, and environment state.
These should be basic getters / setters that infer from current state.
Synopsis
trait InstallEnvironmentAware
{
- // members
- protected $baseDir;
- // methods
- protected void initBaseDir()
- protected $this setBaseDir()
- public string getBaseDir()
- public string getPublicDir()
- public bool checkModuleExists()
- protected string getProjectDir()
- protected string getProjectSrcDir()
- public bool isIIS()
- public bool isApache()
- public string|false findWebserver()
- public void testApacheRewriteExists()
- public void testIISRewriteModuleExists()
- public bool hasRewritingCapability()
- public string getDatabaseTypeNice()
- public DatabaseConfigurationHelper getDatabaseConfigurationHelper()
Hierarchy
Used by
Members
protected
- $baseDir
—
Base path
Methods
protected
- getProjectDir() — Get project dir name.
- getProjectSrcDir() — Get src dir name for project
- initBaseDir() — Init base path, or guess if able
- setBaseDir()
public
- checkModuleExists() — Check that a module exists
- findWebserver() — Find the webserver software running on the PHP host.
- getBaseDir() — Get base path for this installation
- getDatabaseConfigurationHelper() — Get an instance of a helper class for the specific database.
- getDatabaseTypeNice() — Get "nice" database name without "Database" suffix
- getPublicDir() — Get path to public directory
- hasRewritingCapability() — Determines if the web server has any rewriting capability.
- isApache()
- isIIS() — Check if the web server is IIS and version greater than the given version.
- testApacheRewriteExists()
- testIISRewriteModuleExists()