forked from ictinnovations/ictcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuration save support added for services and gateways
- Loading branch information
Showing
10 changed files
with
345 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
* Mail : [email protected] * | ||
* *************************************************************** */ | ||
|
||
use ICT\Core\Service; | ||
use ICT\Core\Task; | ||
|
||
// default include is /usr/ictcore/core | ||
|
@@ -18,6 +19,13 @@ function cron_process() | |
// process all pending retries | ||
Task::process_all(); | ||
|
||
// execute reload method for all available services | ||
// it will restart gateway in case there are new configurations | ||
$listService = Service::load_all(); | ||
foreach ($listService as $oService) { | ||
$oService->config_update(); | ||
} | ||
|
||
// execute email fetch script | ||
// nothing special we just need to include it for execution | ||
include_once('../bin/sendmail/gateway.php'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.