Class Configurator (namespace Nette)


Nette\Environment helper.

Object
   |
   --Configurator
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Configurator.php (line 33)
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 36

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

line 39


Method Details

line 257

createCacheStorage

public static ICacheStorage createCacheStorage ()

Output
ICacheStorage  

line 243

createServiceLocator

public IServiceLocator createServiceLocator ()

Get initial instance of service locator.

Output
IServiceLocator  

line 55

detect

public bool detect (string $name)

Detect environment mode.

Input
string $name mode name
Output
bool  

line 113

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