Class Configurator (namespace Nette)


Nette\Environment helper.

Object
   |
   --Configurator
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Configurator.php (line 36)
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
Object::extensionMethod(), Object::getClass(), Object::getReflection(), Object::__call(), Object::__callStatic(), Object::__get(), Object::__isset(), Object::__set(), Object::__unset()
Variable Summary
string $defaultConfigFile '%appDir%/config.ini'

line 39

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

line 42


Method Details

line 238

createCacheStorage

public static ICacheStorage createCacheStorage ()

Output
ICacheStorage  

line 224

createServiceLocator

public IServiceLocator createServiceLocator ()

Get initial instance of service locator.

Output
IServiceLocator  

line 58

detect

public bool detect (string $name)

Detect environment mode.

Input
string $name mode name
Output
bool  

line 115

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