Class Configurator (namespace Nette)


Nette\Environment helper.

Object
   |
   --Configurator
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Configurator.php (line 34)
Public Method Summary
static ICacheStorage
IServiceLocator
Get initial instance of service locator.
bool
detect (string $name)
Detect environment mode.
Config
loadConfig (string|Nette\Config\Config $file)
Loads global configuration from file and process it.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary
string $defaultConfigFile '%appDir%/config.ini'

line 37

array $defaultServices array( 'Nette\Application\Application' => 'Nette\Application\Application',...

line 40


Method Details

line 244

createCacheStorage

public static ICacheStorage createCacheStorage ()

Output
ICacheStorage  

line 230

createServiceLocator

public IServiceLocator createServiceLocator ()

Get initial instance of service locator.

Output
IServiceLocator  

line 56

detect

public bool detect (string $name)

Detect environment mode.

Input
string $name mode name
Output
bool  

line 114

loadConfig

public Config loadConfig (string|Nette\Config\Config $file)

Loads global configuration from file and process it.

Input
string|Nette\Config\Config $file file name or Config object
Output
Config