WebServerConfigurationFileService

class \TYPO3\CMS\Install\Service\WebServerConfigurationFileService

Handles webserver specific configuration files

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

Methods

addWebServerSpecificBackendRoutingRewriteRules()

public addWebServerSpecificBackendRoutingRewriteRules() : bool

Return values

bool

addApacheBackendRoutingRewriteRules()

protected addApacheBackendRoutingRewriteRules() : bool

Return values

bool

addMicrosoftIisBackendRoutingRewriteRules()

protected addMicrosoftIisBackendRoutingRewriteRules() : bool

Return values

bool

getConfigurationFileContent()

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

string

isApache()

protected isApache() : bool

Return values

bool

isMicrosoftIis()

protected isMicrosoftIis() : bool

Return values

bool

updateNecessary()

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

Return values

bool
On this page