mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
Also catch exceptions in init() method of module instances
This commit is contained in:
parent
ad00ac800b
commit
5b7ce90a3d
1 changed files with 8 additions and 1 deletions
|
|
@ -157,9 +157,16 @@ class ModuleObject extends BaseObject
|
||||||
|
|
||||||
// Execute init
|
// Execute init
|
||||||
if(method_exists($this, 'init'))
|
if(method_exists($this, 'init'))
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
|
catch (Rhymix\Framework\Exception $e)
|
||||||
|
{
|
||||||
|
$this->stop($e->getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue