Beispiel #1
0
 /**
  * Action for pages that represent a single issue.
  */
 public function getAction($identifier)
 {
     $this->checkAuthorised();
     $issue = $this->getEntity($identifier);
     $request = $this->getRequest();
     if ($request->query->has('action')) {
         $this->processRequestData($request, $issue);
     }
     $reply = new Support();
     $reply->setTo(htmlspecialchars_decode($issue->getFrom()));
     $reply->setSubject('Re: ' . $issue->getSubject());
     $reply->setBody("\n\n\n--\nSent by " . $this->getUser()->getName() . " on behalf of Camdram's support team.\nFor further correspondence relating to this email, contact support-" . $issue->getId() . "@camdram.net.\nFor new enquiries, contact websupport@camdram.net.");
     $form = $this->createForm(new SupportType(), $reply, array('action' => $this->generateUrl('post_issue_reply', array('identifier' => $identifier))));
     $this->get('camdram.security.acl.helper')->ensureGranted('VIEW', $issue, false);
     $view = $this->view(array('issue' => $issue, 'form' => $form->createView()), 200)->setTemplate('ActsCamdramAdminBundle:Support:show.html.twig');
     return $view;
 }