Refactoring of classes that where in workflow/engine/src , now all of them have a unique parent namespace \ProcessMaker
This commit is contained in:
33
workflow/engine/src/ProcessMaker/Services/Api/System.php
Normal file
33
workflow/engine/src/ProcessMaker/Services/Api/System.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace ProcessMaker\Services\Api;
|
||||
|
||||
use \ProcessMaker\Services\Api;
|
||||
use \Luracast\Restler\RestException;
|
||||
|
||||
/**
|
||||
* Pmtable Api Controller
|
||||
*
|
||||
* @protected
|
||||
*/
|
||||
class System extends Api
|
||||
{
|
||||
/**
|
||||
* @return array
|
||||
*
|
||||
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
|
||||
* @copyright Colosa - Bolivia
|
||||
*
|
||||
* @url GET /db-engines
|
||||
*/
|
||||
public function doGetDataBaseEngines()
|
||||
{
|
||||
try {
|
||||
$oDBConnection = new \ProcessMaker\BusinessModel\DataBaseConnection();
|
||||
$response = $oDBConnection->getDbEngines();
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user