Example #1
0
 public function indexAction()
 {
     $clientSecret = null;
     if ($this->sessionContainer->clientSecret) {
         $clientSecret = $this->sessionContainer->clientSecret;
         $this->sessionContainer->clientSecret = null;
     }
     return new ViewModel(['applications' => $this->applicationService->getForAccount($this->zourceAccount()), 'clientSecret' => $clientSecret]);
 }
Example #2
0
 public function deleteAction()
 {
     $application = $this->applicationService->getApplication($this->params('id'));
     if (!$application) {
         return $this->notFoundAction();
     }
     if ($application->getAccount() !== $this->zourceAccount()) {
         return $this->notFoundAction();
     }
     $this->applicationService->deleteApplication($application);
     return $this->redirect()->toRoute('settings/applications');
 }