$this->
removeDirectory($adminDir . '/Resources/app/administration/src/scripts'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/patches'
);
unlink($adminDir . '/Resources/app/administration/package-lock.json'
);
$progressBar->
advance(25
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/static'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/build'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/scripts'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/eslint-rules'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/test'
);
$progressBar->
advance(25
);
$progressBar->
finish();
$output->
writeln(''
);
$output->
writeln('All unnecessary files of the administration after the build process have been deleted.'
);
return 0;
} private function deleteEmptyDirectories(string
$dir): void
{ if (!
is_dir($dir)) { return;
}