self::raiseError('Command not found.'); } } public function import($bundleId = '', $libraryName = '') { $bundleId = $this->stripFileName($bundleId); $libraryName = $this->stripFileName($libraryName); $path = $this->configuration['support-path'] . '/bundles/' . $bundleId . '/libs/' . $libraryName . '.php'; @(include_once $path); } public function ok($result) { self::setResult($result); } public function fail($error) { self::raiseError($error); } } // _______ end callback function function end_amy_request() { Db::close_connection(); } // _______ launcher try { $action = new AmyRexecController($_AMY_CONF); $action->process($_REQUEST['a'], new AmyLogger(), 'end_amy_request'); } catch (Exception $e) { AmyRexecController::raiseError($e->getMessage()); }