Class Configurator (namespace Nette)


Nette\Environment helper.

Object
   |
   --Configurator
Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Configurator.php (line 21)
Public Method Summary
static ICacheStorage
static RobotLoader
createRobotLoader ($options)
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 24

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

line 27


Method Details

line 255

createCacheStorage

public static ICacheStorage createCacheStorage ()

Output
ICacheStorage  

line 265

createRobotLoader

public static RobotLoader createRobotLoader ($options)

Input
$options
Output
RobotLoader  

line 241

createServiceLocator

public IServiceLocator createServiceLocator ()

Get initial instance of service locator.

Output
IServiceLocator  

line 45

detect

public bool detect (string $name)

Detect environment mode.

Input
string $name mode name
Output
bool  

line 93

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