/** * @param CoinManagerContainer $coinManagerContainer * @param \Doctrine\ORM\EntityManager $em * @param \Bml\AppBundle\Entity\RoundRepository $roundRepo * @param \Bml\AppBundle\Entity\PayoutRepository $payoutRepo * @param AccountRepository $accountRepo * @param $accountPrefix */ public function __construct(CoinManagerContainer $coinManagerContainer, EntityManager $em, RoundRepository $roundRepo, PayoutRepository $payoutRepo, AccountRepository $accountRepo, $accountPrefix) { $this->manager = $coinManagerContainer->get('main'); $this->accountRepo = $accountRepo; $this->roundRepo = $roundRepo; $this->payoutRepo = $payoutRepo; }
public function __construct(CoinManagerContainer $coinManagerContainer, EntityManager $em, DepositRepository $depositRepo, RoundRepository $roundRepo) { $this->depositRepo = $depositRepo; $this->manager = $coinManagerContainer->get('main'); $this->round = $roundRepo->findCurrent(); $this->em = $em; }
/** * @param \Bml\CoinBundle\Manager\CoinManagerContainer $coinManagerContainer * @param RoundRepository $roundRepo * @param \Doctrine\ORM\EntityManager $em * @param \Bml\AppBundle\Manager\RoundManager $roundManager */ public function __construct(CoinManagerContainer $coinManagerContainer, RoundRepository $roundRepo, EntityManager $em, RoundManager $roundManager) { $this->manager = $coinManagerContainer->get('main'); $this->roundRepo = $roundRepo; $this->em = $em; $this->encoder = new BCryptPasswordEncoder(15); $this->roundManager = $roundManager; }