Namespaces

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

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
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

Returns

Nette\Configurator
self
public boolean
# isDebugMode( )

Returns

boolean
bool
public Nette\Configurator
# setTempDirectory( $path )

Sets path to temporary directory.

Sets path to temporary directory.

Returns

Nette\Configurator
self
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
self
public Nette\Configurator
# addServices( array $services )

Add instances of services.

Add instances of services.

Returns

Nette\Configurator
self
protected array
# getDefaultParameters( )

Returns

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

Parameters

$logDirectory
log directory
$email
email
public Nette\Loaders\RobotLoader
# createRobotLoader( )

Returns

Nette\Loaders\RobotLoader
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
self
public Nette\DI\Container
# createContainer( )

Returns system DI container.

Returns system DI container.

Returns

Nette\DI\Container
DI\Container
protected Nette\DI\Config\Loader
# createLoader( )

Returns

Nette\DI\Config\Loader
DI\Config\Loader
protected
# getCacheDirectory( )
protected array
# fixCompatibility( $config )

Back compatibility with < v2.3

Back compatibility with < v2.3

Returns

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

Detects debug mode by IP address.

Detects debug mode by IP address.

Parameters

$list
addresses or computer names whitelist detection

Returns

boolean
bool
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
boolean AUTO
#TRUE
boolean NONE
#FALSE
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', 'extensions' => 'Nette\DI\Extensions\ExtensionsExtension', 'application' => array('Nette\Bridges\ApplicationDI\ApplicationExtension', array('%debugMode%', array('%appDir%'), '%tempDir%/cache')), 'decorator' => 'Nette\DI\Extensions\DecoratorExtension', 'cache' => array('Nette\Bridges\CacheDI\CacheExtension', array('%tempDir%')), 'database' => array('Nette\Bridges\DatabaseDI\DatabaseExtension', array('%debugMode%')), 'di' => array('Nette\DI\Extensions\DIExtension', array('%debugMode%')), 'forms' => 'Nette\Bridges\FormsDI\FormsExtension', 'http' => 'Nette\Bridges\HttpDI\HttpExtension', 'latte' => array('Nette\Bridges\ApplicationDI\LatteExtension', array('%tempDir%/cache/latte', '%debugMode%')), 'mail' => 'Nette\Bridges\MailDI\MailExtension', 'reflection' => array('Nette\Bridges\ReflectionDI\ReflectionExtension', array('%debugMode%')), 'routing' => array('Nette\Bridges\ApplicationDI\RoutingExtension', array('%debugMode%')), 'security' => array('Nette\Bridges\SecurityDI\SecurityExtension', array('%debugMode%')), 'session' => array('Nette\Bridges\HttpDI\SessionExtension', array('%debugMode%')), 'tracy' => array('Tracy\Bridges\Nette\TracyExtension', array('%debugMode%')), 'inject' => 'Nette\DI\Extensions\InjectExtension', )
public string[] $autowireExcludedClasses

of classes which shouldn't be autowired

of classes which shouldn't be autowired

#array( 'stdClass', )
protected array $parameters
#
protected array $services
#array()
protected array $files

[file|array, section]

[file|array, section]

#array()
Magic properties inherited from Nette\Object
$reflection
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0