Ejemplo n.º 1
0
 public function __construct(EntityManagerInterface $entityManager)
 {
     parent::__construct($entityManager);
     $this->entityManager = $entityManager;
     $this->personalPointRepository = $entityManager->getRepository(ShipmentPersonalPoint::class);
     $this->transportCompanyRepository = $entityManager->getRepository(ShipmentTransportCompany::class);
     $this->collectionPointRepository = $entityManager->getRepository(ShipmentCollectionPoint::class);
 }
Ejemplo n.º 2
0
 public function __construct(EntityManagerInterface $entityManager, Session $session, $cashPaymentAvailable, $bankPaymentAvailable, $cardPaymentAvailable)
 {
     parent::__construct($entityManager);
     $this->repository = $entityManager->getRepository(Order::class);
     $this->entityManager = $entityManager;
     $orderSession = $session->getSection('order');
     $orderSession->setExpiration('+ 30 minutes');
     $this->orderSession = $orderSession;
     $this->cashPaymentAvailable = (bool) $cashPaymentAvailable;
     $this->bankPaymentAvailable = (bool) $bankPaymentAvailable;
     $this->cardPaymentAvailable = (bool) $cardPaymentAvailable;
 }
Ejemplo n.º 3
0
 public function __construct(EntityManagerInterface $entityManager)
 {
     parent::__construct($entityManager);
     $this->repository = $entityManager->getRepository(User::class);
 }
Ejemplo n.º 4
0
 public function __construct(EntityManagerInterface $entityManager)
 {
     parent::__construct($entityManager);
     $this->cartRepository = $entityManager->getRepository(Cart::class);
     $this->itemRepository = $entityManager->getRepository(CartItem::class);
 }
Ejemplo n.º 5
0
 public function __construct(EntityManagerInterface $entityManager, $imagesDir)
 {
     parent::__construct($entityManager);
     $this->repository = $entityManager->getRepository(ProductImage::class);
     $this->imagesDir = $imagesDir;
 }