+ }
+
+ protected function addNavigation(TemplateResponse $res)
+ {
+ $nav = new \OCP\Template('grauphel', 'appnavigation', '');
+ $nav->assign('apiurl', $this->getApiUrl());
+
+ $params = $res->getParams();
+ $params['appNavigation'] = $nav;
+ $res->setParams($params);
+ }
+
+ protected function checkDeps()
+ {
+ if (!class_exists('OAuthProvider')) {
+ throw new \Exception('PHP extension "oauth" is required');
+ }
+ }