Class NConfigurator (namespace Nette)


NEnvironment helper.

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

line 36

array $defaultServices array( 'NApplication' => 'NApplication', 'IHttpRequest' => 'NHttpRequest',...

line 39


Method Details

line 264

createCacheStorage

public static ICacheStorage createCacheStorage ()

Output
ICacheStorage  

line 274

createRobotLoader

public static NRobotLoader createRobotLoader ($options)

Input
$options
Output
NRobotLoader  

line 250

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 104

loadConfig

public NConfig loadConfig (string|NConfig $file)

Loads global configuration from file and process it.

Input
string|NConfig $file file name or NConfig object
Output
NConfig