File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414namespace CodeIgniter \Shield \Commands ;
1515
1616use CodeIgniter \CLI \CLI ;
17- use CodeIgniter \Commands \Database \Migrate ;
1817use CodeIgniter \Shield \Commands \Setup \ContentReplacer ;
1918use CodeIgniter \Test \Filters \CITestStreamFilter ;
2019use Config \Autoload as AutoloadConfig ;
2120use Config \Email as EmailConfig ;
22- use Config \Services ;
2321
2422class Setup extends BaseCommand
2523{
@@ -419,15 +417,13 @@ private function runMigrations(): void
419417 return ;
420418 }
421419
422- $ command = new Migrate (Services::logger (), Services::commands ());
423-
424420 // This is a hack for testing.
425421 // @TODO Remove CITestStreamFilter and refactor when CI 4.5.0 or later is supported.
426422 CITestStreamFilter::registration ();
427423 CITestStreamFilter::addOutputFilter ();
428424 CITestStreamFilter::addErrorFilter ();
429425
430- $ command-> run ([ ' all ' => null ] );
426+ command ( ' migrate -- all ' );
431427
432428 CITestStreamFilter::removeOutputFilter ();
433429 CITestStreamFilter::removeErrorFilter ();
You can’t perform that action at this time.
0 commit comments