Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • Callback
  • Configurator
  • Environment
  • Framework
  • FreezableObject
  • Object

Interfaces

  • IFreezable

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FileNotFoundException
  • InvalidArgumentException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • OutOfRangeException
  • StaticClassException
  • UnexpectedValueException
  • 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 Bootstrap/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

Throws

Nette\NotSupportedException
if RobotLoader is not available
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 Nette\DI\ContainerFactory
# createContainerFactory( )

Returns

Nette\DI\ContainerFactory
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
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

string COOKIE_SECRET 'nette-debug'
#
Properties summary
public callable[] $onCompile
#

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

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\Bridges\Framework\NetteExtension', 'database' => 'Nette\Bridges\DatabaseDI\DatabaseExtension', '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.2 API documentation generated by ApiGen 2.8.0