@@ -61,6 +61,9 @@ |
||
| 61 | 61 | $this->addRow($row); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | + /** |
|
| 65 | + * @param integer $quantity |
|
| 66 | + */ |
|
| 64 | 67 | public function setMeal(Meal $meal, $quantity) |
| 65 | 68 | { |
| 66 | 69 | if ($quantity == 0) { |
@@ -2,17 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace AppBundle\Controller; |
| 4 | 4 | |
| 5 | -use AppBundle\Cart\Cart; |
|
| 6 | -use AppBundle\Cart\CartSerializer; |
|
| 7 | 5 | use AppBundle\Entity\Order; |
| 8 | -use AppBundle\Event\OrderEvent; |
|
| 9 | -use AppBundle\Event\OrderEvents; |
|
| 10 | -use AppBundle\Form\Type\OrderType; |
|
| 11 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
| 12 | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 13 | 8 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 14 | 9 | use Symfony\Component\HttpFoundation\Request; |
| 15 | -use Symfony\Component\HttpFoundation\Response; |
|
| 16 | 10 | |
| 17 | 11 | class AdminOrderController extends Controller |
| 18 | 12 | { |
@@ -40,6 +40,9 @@ discard block |
||
| 40 | 40 | ); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $template |
|
| 45 | + */ |
|
| 43 | 46 | private function sendMail($recipient, $template, array $parameters = array()) |
| 44 | 47 | { |
| 45 | 48 | $message = $this->getMessage($template, $parameters); |
@@ -47,6 +50,9 @@ discard block |
||
| 47 | 50 | $this->mailer->send($message); |
| 48 | 51 | } |
| 49 | 52 | |
| 53 | + /** |
|
| 54 | + * @return \Swift_Mime_Message |
|
| 55 | + */ |
|
| 50 | 56 | public function getMessage($template, $parameters = array()) |
| 51 | 57 | { |
| 52 | 58 | $template = $this->twig->loadTemplate($template); |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
| 10 | 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 11 | 11 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 12 | -use Symfony\Component\Form\Extension\Core\Type\SubmitType; |
|
| 13 | 12 | use Symfony\Component\HttpFoundation\Request; |
| 14 | 13 | |
| 15 | 14 | class AdminMenuController extends Controller |