get = array(); // User Context $this->get[UserGateway::class] = new UserGateway(); $this->get[UserContextBuilder::class] = new UserContextBuilder($this->get[UserGateway::class]); // Categories $this->get[CategoryGateway::class] = new CategoryGateway(); $this->get[CategoryRetriever::class] = new CategoryRetriever($this->get[CategoryGateway::class]); // Bans $this->get[BanGateway::class] = new BanGateway(); $this->get[BanRetriever::class] = new BanRetriever($this->get[BanGateway::class]); // Tickets $this->get[TicketGateway::class] = new TicketGateway(); $this->get[TicketRetriever::class] = new TicketRetriever($this->get[TicketGateway::class]); $this->get[TicketValidators::class] = new TicketValidators($this->get[TicketGateway::class]); $this->get[TrackingIdGenerator::class] = new TrackingIdGenerator($this->get[TicketGateway::class]); $this->get[Autoassigner::class] = new Autoassigner(); $this->get[NewTicketValidator::class] = new NewTicketValidator($this->get[CategoryRetriever::class], $this->get[BanRetriever::class], $this->get[TicketValidators::class]); $this->get[TicketCreator::class] = new TicketCreator($this->get[NewTicketValidator::class], $this->get[TrackingIdGenerator::class], $this->get[Autoassigner::class], $this->get[TicketGateway::class]); } }