Methods summary
public
array
|
|
public
Charcoal\View\ViewConfig
|
#
setPaths( array $paths )
Parameters
- $paths
- The paths to search into.
Returns
|
public
Charcoal\View\ViewConfig
|
#
addPath( string $path )
Parameters
- $path
- A path to add to the paths list.
Returns
Throws
InvalidArgumentException If the path is not a string.
|
public
array
|
|
public
Charcoal\View\ViewConfig
|
#
setEngines( array $engines )
Parameters
- $engines
- The various engines configuration.
Returns
|
public
Charcoal\View\ViewConfig
|
#
addEngine( string $engineIdent, array $engineConfig )
Parameters
- $engineIdent
- The engine identifier.
- $engineConfig
- The engine configuration data.
Returns
Throws
InvalidArgumentException If the engine ident is not a string.
|
public
array
|
|
public
array
|
#
engine( string|null $engineIdent = null )
Get an engine's configuration.
Get an engine's configuration.
Parameters
- $engineIdent
- The engine identifier to get the configuration of.
Returns
array
Throws
InvalidArgumentException If the engine ident is not a string or does not match any engines.
|
public
Charcoal\View\ViewConfig
|
#
setDefaultEngine( string $engineIdent )
Parameters
- $engineIdent
- The default engine (identifier).
Returns
Throws
InvalidArgumentException If the engine ident is not a string.
|
public
string
|
|