public function __construct() { $this->dic = DIC::getInstance(); $this->githubClient = $this->dic->githubClient; $this->gitlabClient = $this->dic->gitlabClient; $this->organization = $this->dic->organization; }
public function run($dry = true) { $dic = DIC::getInstance(); $dic->userMigrator = new UserMigrator(); $dic->userMigrator->run($dry); $teamMigrator = new TeamMigrator(); // $teamMigrator->run($dry); $projectMigrator = new ProjectMigrator(); foreach ($projectMigrator->getGithubProjects() as $githubProject) { list($_org, $githubProjectName) = explode('/', str_replace('https://github.com/', '', $githubProject['html_url'])); if ($githubProjectName !== 'Admin') { $projectMigrator->importProject($githubProject, $dry); } } }