SilverStripe\Dev\Install\InstallConfig
Provides environment settings from the current request + environment
Synopsis
class InstallConfig
{
- // members
- protected array $preferredDatabases = ;
- // methods
- public void __construct()
- public array getDatabaseConfig()
- public array getAdminConfig()
- public bool alreadyInstalled()
- protected string getConfigPath()
- protected string getEnvPath()
- protected string getDatabaseClass()
- public string getFrameworkVersion()
- public bool canSendStats()
- public array getLocales()
- public string getTheme()
- // Inherited methods from InstallEnvironmentAware
- 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
Members
protected
- $baseDir
—
Base path - $preferredDatabases
—
array
List of preferred DB classes in order
Methods
protected
- getConfigPath()
- getDatabaseClass() — Database configs available for configuration
- getEnvPath()
public
- __construct()
- alreadyInstalled() — Check if this site has already been installed
- canSendStats() — Check if stats should be sent
- getAdminConfig() — Get admin config from the environment
- getDatabaseConfig() — Get database config from the current environment
- getFrameworkVersion() — Get string representation of the framework version
- getLocales() — Get configured locales
- getTheme() — Get theme selected
Inherited from SilverStripe\Dev\Install\InstallEnvironmentAware
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()