62 $connection = Main\Application::getInstance()->getConnection();
63 $connection->startTransaction();
66 Option::set(
"rest",
"service_client_id", $accessParams[
"client_id"]);
67 Option::set(
"rest",
"service_client_secret", $accessParams[
"client_secret"]);
68 $connection->commitTransaction();
72 $connection->rollbackTransaction();