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); }
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; }
public function __construct(EntityManagerInterface $entityManager) { parent::__construct($entityManager); $this->repository = $entityManager->getRepository(User::class); }
public function __construct(EntityManagerInterface $entityManager) { parent::__construct($entityManager); $this->cartRepository = $entityManager->getRepository(Cart::class); $this->itemRepository = $entityManager->getRepository(CartItem::class); }
public function __construct(EntityManagerInterface $entityManager, $imagesDir) { parent::__construct($entityManager); $this->repository = $entityManager->getRepository(ProductImage::class); $this->imagesDir = $imagesDir; }