Controller/TicketController.php
public function newAction()
    {
        $ticketManager = $this->get('hackzilla_ticket.ticket_manager');
        $entity        = $ticketManager->createTicket();

        $form = $this->createForm(TicketType::class, $entity);

        return $this->render(
            $this->container->getParameter('hackzilla_ticket.templates')['new'],
            [
                'entity' => $entity,
                'form'   => $form->createView(),
            ]
        );
    }
public function newAction()
    {
        $ticketManager = $this->get('hackzilla_ticket.ticket_manager');
        $entity        = $ticketManager->createTicket();

        $form = $this->createForm(TicketType::class, $entity);

        return $this->render(
            $this->container->getParameter('hackzilla_ticket.templates')['new'],
            [
                'entity' => $entity,
                'form'   => $form->createView(),
            ]
        );
    }
public function newAction ( ) { $ ticketManager = $ this -> get ( 'hackzilla_ticket.ticket_manager' ) ; $ entity = $ ticketManager -> createTicket ( ) ; $ form = $ this -> createForm ( TicketType :: class , $ entity ) ; return $ this -> render ( $ this -> container -> getParameter ( 'hackzilla_ticket.templates' ) [ 'new' ] , [ 'entity' => $ entity , 'form' => $ form -> createView ( ) , ] ) ; }
Displays a form to create a new Ticket entity.
Displays a form to create a new Ticket entity .