Class HttpExtension
HTTP extension for Nette DI.
- Nette\DI\CompilerExtension uses Nette\SmartObject
- Nette\Bridges\HttpDI\HttpExtension
public
|
|
public
|
|
public
|
#
beforeCompile( )
Adjusts DI container before is compiled to PHP class. Intended to be overridden by descendant. |
public
|
#
afterCompile(
Adjusts DI container compiled to PHP class. Intended to be overridden by descendant. |
getConfig(),
getContainerBuilder(),
loadFromFile(),
prefix(),
setCompiler(),
setConfig(),
validateConfig()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
public
array
|
$defaults
|
# [
'proxy' => [],
'headers' => [
'X-Powered-By' => 'Nette Framework',
'Content-Type' => 'text/html; charset=utf-8',
],
'frames' => 'SAMEORIGIN', // X-Frame-Options
'csp' => [], // Content-Security-Policy
'cspReportOnly' => [], // Content-Security-Policy-Report-Only
'csp-report' => null, // for compatibility
'featurePolicy' => [], // Feature-Policy
'cookieSecure' => null, // true|false|auto Whether the cookie is available only through HTTPS
'sameSiteProtection' => null, // activates Request::isSameSite() protection
] |
$compiler,
$config,
$name
|