/** * Constructeur. * * @param Registry $doctrine * @param ConfigurationLoader $configurationLoader */ public function __construct(Registry $doctrine, ConfigurationLoader $configurationLoader) { // Injection de dépendances $this->doctrine = $doctrine; // Chargement de la configuration $configuration = $configurationLoader->load('stats.yml'); $this->configuration = $configuration; }
/** * Constructeur. * * @param EntityManager $entityManager * @param ConfigurationLoader $configurationLoader */ public function __construct(EntityManager $entityManager, ConfigurationLoader $configurationLoader) { // Injection de dépendances $this->em = $entityManager; // Chargement de la configuration $configuration = $configurationLoader->load('import.yml'); $this->configuration = $configuration['handlers']['pleins']; // Tableaux de classification $this->pleins = array(); $this->validPleins = array(); $this->waitingPleins = array(); }
/** * Constructeur. * * @param EntityManager $entityManager * @param ConfigurationLoader $configurationLoader * @param MouvementCategorizer $mouvementCategorizer */ public function __construct(EntityManager $entityManager, ConfigurationLoader $configurationLoader, MouvementCategorizer $mouvementCategorizer) { // Injection de dépendances $this->em = $entityManager; $this->mouvementCategorizer = $mouvementCategorizer; // Chargement de la configuration $configuration = $configurationLoader->load('import.yml'); $this->configuration = $configuration['handlers']['mouvements']; // Tableaux de classification $this->mouvements = array(); $this->categorizedMouvements = array(); $this->uncategorizedMouvements = array(); $this->ambiguousMouvements = array(); $this->waitingMouvements = array(); }