Adds --profile

This commit is contained in:
Nuno Maduro
2022-09-16 19:11:59 +01:00
parent 3d5271f512
commit b0b83505af
2 changed files with 25 additions and 19 deletions

View File

@ -19,8 +19,10 @@ use Symfony\Component\Console\Output\OutputInterface;
foreach ($args as $key => $value) {
if (str_contains($value, '--compact')) {
$_SERVER['COLLISION_PRINTER_COMPACT'] = 'true';
}
break;
if (str_contains($value, '--profile')) {
$_SERVER['COLLISION_PRINTER_PROFILE'] = 'true';
}
}
@ -63,6 +65,10 @@ use Symfony\Component\Console\Output\OutputInterface;
if (str_contains($value, '--compact')) {
unset($args[$key]);
}
if (str_contains($value, '--profile')) {
unset($args[$key]);
}
}
$kernel = Kernel::boot();