checkExtensionOrThrowError(); /** * run kerio service */ $result = $this->kerioRunService($params); return $result; }catch (\Exception $ex) { /** * return some crit error */ return $ex->getMessage(); } } /** * @param null $params * @return string */ protected function kerioRunService($params = null) { $productManager = new ProductManager(); $productManager->loadById($params['pid']); logModuleCall( 'kerioEmail', __FUNCTION__, $productManager, 'Debug ChangePackage', $params ); return Response::SUCCESS; } }