public function __construct($filename, ContainerInterface $container) { parent::__construct($filename, $container); $this->_customer = $this->getCustomerByName('Hewlett Packard AO'); $this->_status = $this->getProductStatusByName('Created'); $this->_count = 1; }
public function __construct($filePath, $container) { parent::__construct($filePath, $container); $this->qb = $this->_em->createQueryBuilder(); $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(); $header = $this->getLine(8000); array_pop($header); if ($header[4] == 'Event') { $this->logType = self::TYPE_INTERFACE_LOG; } else { $this->logType = self::TYPE_SPMINTERFACE_LOG; } $this->checkHeader($header); }