Class NetteExtension
Core Nette Framework services.
- Nette\Object
-
Nette\DI\CompilerExtension
-
Nette\DI\Extensions\NetteExtension
Namespace: Nette\DI\Extensions
Author: David Grudl
Located at vendor/nette/nette/Nette/DI/Extensions/NetteExtension.php
Author: David Grudl
Located at vendor/nette/nette/Nette/DI/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(
'http' => array(
'proxy' => array(),
),
'session' => array(
'debugger' => FALSE,
'autoStart' => 'smart', // true|false|smart
'expiration' => NULL,
),
'application' => array(
'debugger' => TRUE,
'errorPresenter' => 'Nette:Error',
'catchExceptions' => '%productionMode%',
'mapping' => NULL
),
'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,
'host' => NULL,
'port' => NULL,
'username' => NULL,
'password' => NULL,
'secure' => NULL,
'timeout' => NULL,
),
'database' => array(), // of [name => dsn, user, password, debugger, explain, autowired, reflection]
'forms' => array(
'messages' => array(),
),
'latte' => array(
'xhtml' => FALSE,
'macros' => array(),
),
'container' => array(
'debugger' => FALSE,
'accessors' => TRUE,
),
'debugger' => array(
'email' => NULL,
'editor' => NULL,
'browser' => NULL,
'strictMode' => NULL,
'maxLen' => NULL,
'maxDepth' => NULL,
'showLocation' => NULL,
'scream' => 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' => 'Nette\Database\Reflection\DiscoveredReflection',
'autowired' => NULL,
) |
$compiler,
$name
|
$config,
$containerBuilder
|
$reflection
|