fix
This commit is contained in:
parent
324289a4d0
commit
2e53bb520d
|
|
@ -31,10 +31,32 @@ class ViewRenderEventManager
|
|||
{
|
||||
$this->params = $params ?? [];
|
||||
|
||||
Event::fire($eventName, $this->params);
|
||||
Event::fire($eventName, $this);
|
||||
|
||||
return $this->templates;
|
||||
}
|
||||
|
||||
/**
|
||||
* get params
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getParams()
|
||||
{
|
||||
return $this->params;
|
||||
}
|
||||
|
||||
/**
|
||||
* get param
|
||||
*
|
||||
* @param $name
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getParam($name)
|
||||
{
|
||||
return optional($this->params)->{$name};
|
||||
}
|
||||
|
||||
/**
|
||||
* Add templates for render
|
||||
|
|
|
|||
Loading…
Reference in New Issue