Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

Interfaces

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Configurator

Initial system DI container generator.

Object
Extended by Configurator
Package: Nette\Config
Author: David Grudl
Located at Config/Configurator.php
Methods summary
public
# __construct( )
public Configurator
# setDebugMode( boolean|string|array $value = '' )

Set parameter %debugMode%.

Set parameter %debugMode%.

Parameters

$value
boolean|string|array

Returns

Configurator
public boolean
# isDebugMode( )

Returns

boolean
public Configurator
# setTempDirectory( $path )

Sets path to temporary directory.

Sets path to temporary directory.

Returns

Configurator
public Configurator
# addParameters( array $params )

Adds new parameters. The %params% will be expanded.

Adds new parameters. The %params% will be expanded.

Returns

Configurator
protected array
# getDefaultParameters( )

Returns

array
public
# enableDebugger( string $logDirectory = NULL, string $email = NULL )

Parameters

$logDirectory
string
error log directory
$email
string
administrator email
public RobotLoader
# createRobotLoader( )

Returns

RobotLoader
public Configurator
# addConfig( $file, $section = NULL )

Adds configuration file.

Adds configuration file.

Returns

Configurator
public
# loadConfig( $file, $section = NULL )

Deprecated

public SystemContainer|Container
# createContainer( )

Returns system DI container.

Returns system DI container.

Returns

SystemContainer|Container
protected string
# buildContainer( & $dependencies = NULL )

Build system container class.

Build system container class.

Returns

string
protected
# checkCompatibility( array $config )
protected ConfigCompiler
# createCompiler( )

Returns

ConfigCompiler
protected ConfigLoader
# createLoader( )

Returns

ConfigLoader
protected
# getCacheDirectory( )
public static boolean
# detectDebugMode( string|array $list = NULL )

Detects debug mode by IP address.

Detects debug mode by IP address.

Parameters

$list
string|array
IP addresses or computer names whitelist detection

Returns

boolean
public
# setProductionMode( $value = TRUE )

Deprecated

public
# isProductionMode( )

Deprecated

public static
# detectProductionMode( $list = NULL )

Deprecated

Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
AUTO NULL
#

config file sections

config file sections

boolean NONE FALSE
#

config file sections

config file sections

string DEVELOPMENT 'development'
#

Deprecated

string PRODUCTION 'production'
#

Deprecated

Properties summary
public array $onCompile
#

of function(Configurator $sender, Compiler $compiler); Occurs after the compiler is created

of function(Configurator $sender, Compiler $compiler); Occurs after the compiler is created

protected array $parameters
#
protected array $files array()
#
Magic properties summary
public boolean $debugMode
#
public write-only $tempDirectory
#
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0