WebServerConfigurationFileService
Handles webserver specific configuration files
This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.
Table of Contents
Properties
- $publicPath : string
- $webServer : string
Methods
- __construct() : mixed
- addWebServerSpecificBackendRoutingRewriteRules() : bool
- addApacheBackendRoutingRewriteRules() : bool
- addMicrosoftIisBackendRoutingRewriteRules() : bool
- getConfigurationFileContent() : string
- Returns the webserver configuration if it exists, is readable and is writeable
- getWebServer() : string
- isApache() : bool
- isMicrosoftIis() : bool
- updateNecessary() : bool
- Checks if the webserver configuration needs to be updated.
Properties
$publicPath
protected
string
$publicPath
$webServer
protected
string
$webServer
Methods
__construct()
public
__construct() : mixed
addWebServerSpecificBackendRoutingRewriteRules()
public
addWebServerSpecificBackendRoutingRewriteRules() : bool
Return values
booladdApacheBackendRoutingRewriteRules()
protected
addApacheBackendRoutingRewriteRules() : bool
Return values
booladdMicrosoftIisBackendRoutingRewriteRules()
protected
addMicrosoftIisBackendRoutingRewriteRules() : bool
Return values
boolgetConfigurationFileContent()
Returns the webserver configuration if it exists, is readable and is writeable
protected
getConfigurationFileContent(string $filename) : string
Parameters
- $filename : string
-
The webserver configuration file name
Return values
string —The webserver configuration or an empty string
getWebServer()
protected
getWebServer() : string
Return values
stringisApache()
protected
isApache() : bool
Return values
boolisMicrosoftIis()
protected
isMicrosoftIis() : bool
Return values
boolupdateNecessary()
Checks if the webserver configuration needs to be updated.
protected
updateNecessary(string $configurationFileContent) : bool
This currently checks if the "known directory" rule still
contains the typo3
directory and the frontend rewrite rule
exists. Later is needed since the backend rewrite rule must
be placed before.
Parameters
- $configurationFileContent : string