public function loadDependencies() { if ($this->db === null) { $this->db = \Config\Database::connect($this->DBGroup); $this->db->initialize(); } if ($this->migrations === null) { // Ensure that we can run migrations $config = new \Config\Migrations(); $config->enabled = true; $this->migrations = Services::migrations($config, $this->db); $this->migrations->setSilent(true); } if ($this->seeder === null) { $this->seeder = \Config\Database::seeder($this->DBGroup); $this->seeder->setSilent(true); } }