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
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • Configurator
  • Framework
  • LegacyObject

Traits

  • SmartObject
  • StaticClass

Exceptions

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

Class Configurator

Initial system DI container generator.

Nette\Configurator uses Nette\SmartObject
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
static
public boolean
# isDebugMode( )

Returns

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

Sets path to temporary directory.

Sets path to temporary directory.

Parameters

$path

Returns

Nette\Configurator
static
public Nette\Configurator
# setTimeZone( string $timezone )

Sets the default timezone.

Sets the default timezone.

Parameters

$timezone

Returns

Nette\Configurator
static
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
static
public Nette\Configurator
# addDynamicParameters( array $params )

Adds new dynamic parameters.

Adds new dynamic parameters.

Returns

Nette\Configurator
static
public Nette\Configurator
# addServices( array $services )

Add instances of services.

Add instances of services.

Returns

Nette\Configurator
static
protected array
# getDefaultParameters( )

Returns

array
array
public
# enableTracy( string $logDirectory = null, string $email = null )

Parameters

$logDirectory
$email
public
# enableDebugger( string $logDirectory = null, string $email = null )

Alias for enableTracy()

Alias for enableTracy()

Parameters

$logDirectory
$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( string|array $file )

Adds configuration file.

Adds configuration file.

Parameters

$file

Returns

Nette\Configurator
static
public Nette\DI\Container
# createContainer( )

Returns system DI container.

Returns system DI container.

Returns

Nette\DI\Container
DI\Container
public string
# loadContainer( )

Loads system DI container class and returns its name.

Loads system DI container class and returns its name.

Returns

string
string
public string
# generateContainer( Nette\DI\Compiler $compiler )

Returns

string
string

Internal

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

Returns

Nette\DI\Config\Loader
DI\Config\Loader
protected string
# getCacheDirectory( )

Returns

string
string
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 addresses or computer names whitelist detection.

Detects debug mode by IP addresses or computer names whitelist detection.

Parameters

$list

Returns

boolean
bool
Methods used from Nette\SmartObject
__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
#[ 'php' => Nette\DI\Extensions\PhpExtension::class, 'constants' => Nette\DI\Extensions\ConstantsExtension::class, 'extensions' => Nette\DI\Extensions\ExtensionsExtension::class, 'application' => [Nette\Bridges\ApplicationDI\ApplicationExtension::class, ['%debugMode%', ['%appDir%'], '%tempDir%/cache']], 'decorator' => Nette\DI\Extensions\DecoratorExtension::class, 'cache' => [Nette\Bridges\CacheDI\CacheExtension::class, ['%tempDir%']], 'database' => [Nette\Bridges\DatabaseDI\DatabaseExtension::class, ['%debugMode%']], 'di' => [Nette\DI\Extensions\DIExtension::class, ['%debugMode%']], 'forms' => Nette\Bridges\FormsDI\FormsExtension::class, 'http' => [Nette\Bridges\HttpDI\HttpExtension::class, ['%consoleMode%']], 'latte' => [Nette\Bridges\ApplicationDI\LatteExtension::class, ['%tempDir%/cache/latte', '%debugMode%']], 'mail' => Nette\Bridges\MailDI\MailExtension::class, 'routing' => [Nette\Bridges\ApplicationDI\RoutingExtension::class, ['%debugMode%']], 'security' => [Nette\Bridges\SecurityDI\SecurityExtension::class, ['%debugMode%']], 'session' => [Nette\Bridges\HttpDI\SessionExtension::class, ['%debugMode%', '%consoleMode%']], 'tracy' => [Tracy\Bridges\Nette\TracyExtension::class, ['%debugMode%', '%consoleMode%']], 'inject' => Nette\DI\Extensions\InjectExtension::class, ]
public string[] $autowireExcludedClasses

of classes which shouldn't be autowired

of classes which shouldn't be autowired

#[ 'stdClass', ]
protected array $parameters
#
protected array $dynamicParameters
#[]
protected array $services
#[]
protected array $files

[file|array, section]

[file|array, section]

#[]
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0