public function displayRepo(ServiceSvn $service, HTTPRequest $request)
 {
     try {
         $repository = $this->repository_manager->getById($request->get('idRepo'), $request->getProject());
         $service->renderInPage($request, 'Repository clone', 'explorer/repository_clone', new RepositoryDisplayPresenter($repository, $request));
     } catch (RepositoryNotFoundException $e) {
         $GLOBALS['Response']->addFeedback('error', $repo_name . ' ' . $GLOBALS['Language']->getText('plugin_svn', 'repository_not_found'));
         $GLOBALS['Response']->redirect(SVN_BASE_URL . '/?' . http_build_query(array('group_id' => $request->getProject()->getid())));
     }
 }
 public function index(ServiceSvn $service, HTTPRequest $request)
 {
     // TODO: make sure all ViewVC functionnalities are still operationnal
     $project = $request->getProject();
     $service->renderInPage($request, 'ViewVC', 'code-browser/index', new CodeBrowserPresenter($project, $this->proxy->getContent($request)));
 }
 private function renderIndex(ServiceSvn $service, HTTPRequest $request)
 {
     $project = $request->getProject();
     $service->renderInPage($request, 'Welcome', 'index', new ExplorerPresenter($project));
 }
Exemplo n.º 4
0
 private function renderIndex(ServiceSvn $service, HTTPRequest $request)
 {
     $project = $request->getProject();
     $token = $this->generateTokenForCeateRepository($request->getProject());
     $service->renderInPage($request, 'Welcome', 'explorer/index', new ExplorerPresenter($project, $token, $request->get('name'), $this->repository_manager));
 }