/** * {@inheritDoc} */ public function getTotal() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getTotal', array()); return parent::getTotal(); }
/** * Finds and displays a Cart entity. * * @Route("/{id}", requirements={"id" = "\d+"}, name="cart_show_confirmed") * @Method("GET") */ public function showConfirmedAction(Request $request, Cart $cart) { $this->log("Confirmed cart shown"); return $this->render('cart/show.html.twig', array('cart' => $cart, 'total' => $cart->getTotal())); }