예제 #1
0
 /**
  * UserImporter constructor.
  * @param Connection $dbalConnection
  * @param EntityManager $em
  * @param OutputInterface $consoleOutput
  * @param LoggerInterface $logger
  * @param UserManager $userManager
  * @param TokenGenerator $tokenGenerator
  * @param string $locale
  */
 public function __construct(Connection $dbalConnection, EntityManager $em, LoggerInterface $logger, OutputInterface $consoleOutput, UserManager $userManager, TokenGenerator $tokenGenerator, $locale)
 {
     parent::__construct($dbalConnection, $em, $logger, $consoleOutput);
     $this->userManager = $userManager;
     $this->tokenGenerator = $tokenGenerator;
     $this->locale = $locale;
 }
 /**
  * JournalImporter constructor.
  * @param Connection $dbalConnection
  * @param EntityManager $em
  * @param OutputInterface $consoleOutput
  * @param LoggerInterface $logger
  * @param UserImporter $ui
  */
 public function __construct(Connection $dbalConnection, EntityManager $em, LoggerInterface $logger, OutputInterface $consoleOutput, UserImporter $ui)
 {
     parent::__construct($dbalConnection, $em, $logger, $consoleOutput);
     $this->userImporter = $ui;
     $this->sectionImporter = new SectionImporter($this->dbalConnection, $this->em, $this->logger, $consoleOutput);
     $this->issueImporter = new IssueImporter($this->dbalConnection, $this->em, $this->logger, $consoleOutput);
     $this->articleImporter = new ArticleImporter($this->dbalConnection, $this->em, $logger, $consoleOutput, $this->userImporter);
     $this->boardImporter = new BoardImporter($this->dbalConnection, $this->em, $logger, $consoleOutput);
     $this->boardMemberImporter = new BoardMemberImporter($this->dbalConnection, $this->em, $logger, $consoleOutput, $this->userImporter);
     $this->journalPageImporter = new JournalPageImporter($this->dbalConnection, $this->em, $logger, $consoleOutput);
 }
 /**
  * AllJournalsImporter constructor.
  * @param Connection $dbalConnection
  * @param EntityManager $em
  * @param LoggerInterface $logger
  * @param OutputInterface $consoleOutput
  * @param UserImporter $ui
  */
 public function __construct(Connection $dbalConnection, EntityManager $em, LoggerInterface $logger, OutputInterface $consoleOutput, UserImporter $ui)
 {
     parent::__construct($dbalConnection, $em, $logger, $consoleOutput);
     $this->ui = $ui;
 }