public function __construct($filename, ContainerInterface $container)
 {
     parent::__construct($filename);
     $this->Title = 'DHL Consolidated Invoice Verification';
     $this->FormPrompt = 'Select an DHL Consolidated Invoice:';
     $this->FileDirectory = 'HP_DHL';
     $this->FormBgCSSClass = 'BlockBgRed';
     $this->container = $container;
 }
 public function __construct(UploadedFile $file, $container)
 {
     parent::__construct($file->getRealPath(), $container);
     $this->qb = $this->_em->createQueryBuilder();
     $this->file = $file;
     $this->customer = $this->_em->getRepository('CoreBundle:Customer')->findOneBy(['abbr' => $this->_container->getParameter('sportmaster_abbr')]);
     if (!$this->customer) {
         throw new \Exception("Cant find customer by abbr {$this->_container->getParameter('sportmaster_abbr')}");
     }
     $this->messageService = new MessageCollectionService();
     $this->vendors = $this->getVendors();
 }