TYPO3  7.6
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Config Class Reference

Public Member Functions

 __construct ($baseDir=null)
 
 merge (array $config)
 
 get ($key, $flags=0)
 
 all ($flags=0)
 
 raw ()
 
 has ($key)
 
 getBaseDir ()
 

Static Public Member Functions

static load (\Composer\Composer $composer)
 

Public Attributes

const RELATIVE_PATHS = 1
 

Static Public Attributes

static $defaultConfig
 

Protected Member Functions

 process ($value, $flags)
 
 realpath ($path)
 

Static Protected Member Functions

static extractBaseDir (\Composer\Config $config)
 

Protected Attributes

 $config
 
 $baseDir
 

Detailed Description

Enter descriptions here

Definition at line 7 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

Constructor & Destructor Documentation

__construct (   $baseDir = null)
Parameters
string$baseDir

Definition at line 38 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

References Config\$baseDir.

Member Function Documentation

all (   $flags = 0)
Parameters
int$flagsOptions (see class constants)
Returns
array

Definition at line 88 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

static extractBaseDir ( \Composer\Config  $config)
staticprotected
Parameters
\Composer\Config$config
Returns
mixed

Definition at line 188 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

get (   $key,
  $flags = 0 
)

Returns a setting

Parameters
string$key
int$flagsOptions (see class constants)
Exceptions
\RuntimeException
Returns
mixed

Definition at line 66 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

References Config\process(), and Config\realpath().

getBaseDir ( )
Returns
string

Definition at line 156 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

References Config\$baseDir.

has (   $key)

Checks whether a setting exists

Parameters
string$key
Returns
bool

Definition at line 112 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

static load ( \Composer\Composer  $composer)
static
merge ( array  $config)

Merges new config values with the existing ones (overriding)

Parameters
array$config

Definition at line 49 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

process (   $value,
  $flags 
)
protected

Replaces {$refs} inside a config string

Parameters
string$valuea config string that can contain {$refs-to-other-config}
int$flagsOptions (see class constants)
Returns
string

Definition at line 123 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

References Config\$config.

Referenced by Config\get().

raw ( )
realpath (   $path)
protected

Turns relative paths in absolute paths without realpath()

Since the dirs might not exist yet we can not call realpath or it will fail.

Parameters
string$path
Returns
string

Definition at line 145 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

Referenced by Config\get().

Member Data Documentation

$baseDir
protected
$config
protected
$defaultConfig
static
Initial value:
= array(
'web-dir' => '.',
'backend-dir' => '{$web-dir}/typo3',
'config-dir' => '{$web-dir}/typo3conf',
'temporary-dir' => '{$web-dir}/typo3temp',
'cache-dir' => '{$temporary-dir}/Cache',
'cms-package-dir' => 'typo3_src',
'composer-mode' => true,
)

Definition at line 14 of file cms-composer-installers/Classes/TYPO3/CMS/Composer/Plugin/Config.php.

const RELATIVE_PATHS = 1