/** * @param JsonModel $view * @param ModuleListInterface $moduleList * @param SetupFactory $setupFactory * @param AdminAccountFactory $adminAccountFactory * @param Logger $logger * @param Random $random * @param Config $config */ public function __construct(JsonModel $view, ModuleListInterface $moduleList, SetupFactory $setupFactory, AdminAccountFactory $adminAccountFactory, Logger $logger, Random $random, Config $config) { $this->logger = $logger; $this->json = $view; $this->moduleList = $moduleList->getModules(); $this->setupFactory = $setupFactory; $this->config = $config; $this->adminAccountFactory = $adminAccountFactory; $this->random = $random; }
/** * @param AdapterInterface $connection * @param ModuleListInterface $moduleList * @param SetupFileResolver $setupFileResolver * @param Logger $logger * @param $moduleName * @param array $connectionConfig */ public function __construct(AdapterInterface $connection, ModuleListInterface $moduleList, SetupFileResolver $setupFileResolver, Logger $logger, $moduleName, array $connectionConfig = array()) { $this->logger = $logger; $this->connection = $connection->getConnection($connectionConfig); $this->moduleConfig = $moduleList->getModule($moduleName); $this->resource = new Resource($this->connection); $this->setupFileResolver = $setupFileResolver; $this->resourceName = $setupFileResolver->getResourceCode($moduleName); }