SilverStripe\Dev\Install\Installer
This installer doesn't use any of the fancy SilverStripe stuff in case it's unsupported.
Synopsis
class Installer
{
- // constants
- const PASSWORD_PLACEHOLDER = '********';
- // members
- protected array $errors = ;
- // methods
- public void __construct()
- protected void error()
- protected void installHeader()
- public void install()
- protected void writeIndexPHP()
- protected void writeConfigEnv()
- protected void writeConfigPHP()
- protected void writeConfigYaml()
- protected mixed ymlString()
- public bool writeToFile()
- public void createHtaccess()
- public void createWebConfig()
- public void checkRewrite()
- public void statusMessage()
- protected void sendInstallStats()
- // 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
Constants
Name | Value |
---|---|
PASSWORD_PLACEHOLDER | '********' |
Members
protected
- $baseDir
—
Base path - $errors
—
array
Errors during install
Methods
protected
- error() — Installer error
- installHeader()
- sendInstallStats()
- writeConfigEnv() — Write all .env files
- writeConfigPHP() — Write all *.php files
- writeConfigYaml() — Write yml files
- writeIndexPHP()
- ymlString() — Escape yml string
public
- __construct()
- checkRewrite()
- createHtaccess() — Ensure root .htaccess is setup
- createWebConfig() — Writes basic configuration to the web.config for IIS so that rewriting capability can be use.
- install()
- statusMessage() — Show an installation status message.
- writeToFile() — Write file to given location
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()