Properties

$environment

$environment : string

Type

string — Environment.

$hash

$hash : string

Type

string — Hash.

$locale

$locale : string

Type

string — Locale.

$l10n

$l10n : array

Type

array — Localization.

$instance

$instance : \Quark\Application

Type

\Quark\Application — Application instance.

$whoops

$whoops : \Whoops\Run

Type

\Whoops\Run — Whoops instance.

$config

$config : \Quark\Config

Type

\Quark\Config — Configuration instance.

$ip

$ip : string

Type

string — IP address.

$routes

$routes : array

Type

array — Routes.

Methods

init()

init(array  $config = array()) 

Init.

Parameters

array $config

Configuration.

render()

render() : string

Render.

Returns

string —

Rendered HTML.

getConfig()

getConfig() 

Get configuration.

setConfig()

setConfig(\Noodlehaus\AbstractConfig  $config) 

Set configuration.

Parameters

\Noodlehaus\AbstractConfig $config

Configuration.

getTwig()

getTwig() 

Get Twig instance.

getInstance()

getInstance() 

Get application instance (singleton).

__construct()

__construct() 

Private constructor (singleton).

createWhoops()

createWhoops() 

Create Whoops.

createConfig()

createConfig(array  $config) 

Create config.

Parameters

array $config

Configuration.

createManifest()

createManifest() 

Create manifest.

createTwig()

createTwig() 

Create Twig.

createLocale()

createLocale() 

Create locale.

createL10n()

createL10n() 

Create L10n.

createUserAgent()

createUserAgent() 

Create user agent.

createRouter()

createRouter() 

Create router.

parseComponentsRecursive()

parseComponentsRecursive(\DOMDocument  $doc, array  $data, boolean  $first = false) : string

Parse components recursively.

Parameters

\DOMDocument $doc

DOMDocument.

array $data

Data.

boolean $first

First parse.

Returns

string —

Parsed HTML.

createElementFromString()

createElementFromString(\DOMDocument  $doc, string  $html) : \DOMNode

Create DOMElement from HTML string.

Parameters

\DOMDocument $doc

Document.

string $html

HTML to convert.

Returns

\DOMNode —

Converted DOMNode.

getLayoutName()

getLayoutName(\Quark\Router\Route  $currentRoute) : string

Get twig layout name.

Parameters

\Quark\Router\Route $currentRoute

Current route.

Returns

string —

Twig layout name.