Class NetteExtension
Core Nette Framework services.
- Nette\Object
- Nette\DI\CompilerExtension
- Nette\Bridges\Framework\NetteExtension
Namespace: Nette\Bridges\Framework
Author: David Grudl
Located at Bridges/Framework/NetteExtension.php
Author: David Grudl
Located at Bridges/Framework/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(),
'headers' => array(
'X-Powered-By' => 'Nette Framework',
'Content-Type' => 'text/html; charset=utf-8',
),
),
'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] or [user => ['password' => password, 'roles' => [role]]]
'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(), // BC
'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
),
) |
$compiler,
$name
|
$config,
$containerBuilder
|
$reflection
|