Class NNetteExtension
Core Nette Framework services.
- NObject
- NConfigCompilerExtension
- NNetteExtension
Package: Nette\Config\Extensions
Author: David Grudl
Located at Config/Extensions/NetteExtension.php
Author: David Grudl
Located at Config/Extensions/NetteExtension.php
public
|
|
public
|
#
afterCompile(
Adjusts DI container compiled to PHP class. Intended to be overridden by descendant. |
beforeCompile(),
getConfig(),
getContainerBuilder(),
loadFromFile(),
prefix(),
setCompiler()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
public
array
|
$defaults | array(
'xhtml' => TRUE,
'session' => array(
'iAmUsingBadHost' => NULL,
'autoStart' => 'smart', // true|false|smart
'expiration' => NULL,
),
'application' => array(
'debugger' => TRUE,
'errorPresenter' => NULL,
'catchExceptions' => '%productionMode%',
),
'routing' => array(
'debugger' => TRUE,
'routes' => array(), // of [mask => action]
),
'security' => array(
'debugger' => TRUE,
'frames' => 'SAMEORIGIN', // X-Frame-Options
'users' => array(), // of [user => password]
'roles' => array(), // of [role => parents]
'resources' => array(), // of [resource => parents]
),
'mailer' => array(
'smtp' => FALSE,
),
'database' => array(), // of [name => dsn, user, password, debugger, explain, autowired, reflection]
'forms' => array(
'messages' => array(),
),
'container' => array(
'debugger' => FALSE,
),
'debugger' => array(
'email' => NULL,
'editor' => NULL,
'browser' => NULL,
'strictMode' => NULL,
'bar' => array(), // of class name
'blueScreen' => array(), // of callback
),
) |
|
public
array
|
$databaseDefaults | array(
'dsn' => NULL,
'user' => NULL,
'password' => NULL,
'options' => NULL,
'debugger' => TRUE,
'explain' => TRUE,
'reflection' => 'NDiscoveredReflection',
) |
$compiler,
$name
|
$config,
$containerBuilder
|
$reflection
|