Namespaces

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

Classes

  • ArrayHash
  • ArrayList
  • Callback
  • Configurator
  • DateTime
  • Environment
  • Framework
  • FreezableObject
  • Image
  • Object
  • ObjectMixin

Interfaces

  • IFreezable

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FatalErrorException
  • FileNotFoundException
  • InvalidArgumentException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • OutOfRangeException
  • StaticClassException
  • UnexpectedValueException
  • UnknownImageFileException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Configurator

Initial system DI container generator.

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

Set parameter %debugMode%.

Set parameter %debugMode%.

Parameters

$value
boolean|string|array

Returns

Nette\Configurator
public boolean
# isDebugMode( )

Returns

boolean
public Nette\Configurator
# setTempDirectory( $path )

Sets path to temporary directory.

Sets path to temporary directory.

Returns

Nette\Configurator
public Nette\Configurator
# addParameters( array $params )

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

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

Returns

Nette\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 Nette\Loaders\RobotLoader
# createRobotLoader( )

Returns

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

Adds configuration file.

Adds configuration file.

Returns

Nette\Configurator
public SystemContainer|Nette\DI\Container
# createContainer( )

Returns system DI container.

Returns system DI container.

Returns

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

Build system container class.

Build system container class.

Returns

string
protected Compiler
# createCompiler( )

Returns

Compiler
protected Loader
# createLoader( )

Returns

Loader
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 Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
boolean AUTO TRUE
#
string DEVELOPMENT 'development'
#

Deprecated

string PRODUCTION 'production'
#

Deprecated

boolean NONE FALSE
#

Deprecated

Properties summary
public array $onCompile
#

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

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

public array $defaultExtensions array( 'php' => 'Nette\DI\Extensions\PhpExtension', 'constants' => 'Nette\DI\Extensions\ConstantsExtension', 'nette' => 'Nette\DI\Extensions\NetteExtension', 'extensions' => 'Nette\DI\Extensions\ExtensionsExtension', )
#
protected array $parameters
#
protected array $files array()
#
Magic properties summary
public boolean $debugMode
#
public write-only $tempDirectory
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.1 API documentation generated by ApiGen 2.8.0