PHP Class VersionPress\Initialization\WpConfigSplitter

Extracts constants necessary for all environments (mostly constants changing directory layout) into tracked file.
ファイルを表示 Open project: versionpress/versionpress Class Usage Examples

Public Methods

Method Description
ensureCommonConfigInclude ( $wpConfigPath, $commonConfigName = self::COMMON_CONFIG_NAME ) Adds include of common config if it's missing.
split ( $wpConfigPath, $commonConfigName = self::COMMON_CONFIG_NAME )

Method Details

ensureCommonConfigInclude() public static method

Adds include of common config if it's missing.
public static ensureCommonConfigInclude ( $wpConfigPath, $commonConfigName = self::COMMON_CONFIG_NAME )
$wpConfigPath
$commonConfigName

split() public static method

public static split ( $wpConfigPath, $commonConfigName = self::COMMON_CONFIG_NAME )