mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 21:54:07 +09:00
new events: onBeforeAdminClientCreate & onAfterAdminClientCreate
This commit is contained in:
1 parent
320c793fbf
commit
595c132aea
1 file changed
+2
@@ -158,7 +158,9 @@ class Admin extends \Api_Abstract
|
||||
throw new \Box_Exception('Email is already registered.');
|
||||
}
|
||||
|
||||
$this->di['events_manager']->fire(['event' => 'onBeforeAdminClientCreate', 'params' => $data]);
|
||||
return $service->adminCreateClient($data);
|
||||
$this->di['events_manager']->fire(['event' => 'onAfterAdminClientCreate', 'params' => $data]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user