Release 1.2.0-RC3
This commit is contained in:
parent
581d3f93bf
commit
e5268efcdf
|
@ -14,7 +14,7 @@
|
|||
],
|
||||
"require": {
|
||||
"php": ">=7.1.0",
|
||||
"fuzeworks/core": "1.2.0-RC2"
|
||||
"fuzeworks/core": "1.2.0-RC3"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-json": "*",
|
||||
|
|
|
@ -128,6 +128,7 @@ class Layout
|
|||
* @return mixed
|
||||
* @throws LayoutException On error
|
||||
* @throws EventException
|
||||
* @throws Exception\ConfigException
|
||||
*/
|
||||
public function display(string $file, array $directories = []): bool
|
||||
{
|
||||
|
@ -514,8 +515,10 @@ class Layout
|
|||
|
||||
/**
|
||||
* Resets the layout manager to its default state.
|
||||
*
|
||||
* @param bool $keep_assigned_vars
|
||||
*/
|
||||
public function reset()
|
||||
public function reset(bool $keep_assigned_vars = false)
|
||||
{
|
||||
if (!is_null($this->current_engine))
|
||||
$this->current_engine->reset();
|
||||
|
@ -526,7 +529,9 @@ class Layout
|
|||
$this->file_extensions = array();
|
||||
|
||||
$this->current_engine = null;
|
||||
$this->assigned_variables = array();
|
||||
if (!$keep_assigned_vars)
|
||||
$this->assigned_variables = array();
|
||||
|
||||
Logger::log('Reset the layout manager to its default state');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue