return 0;
} $adminDir = \
dirname((string) (new \
ReflectionClass(Administration::
class))->
getFileName());
$output->
writeln('Deleting unnecessary files of the administration after the build process...'
);
$progressBar =
new ProgressBar($output, 100
);
$finder =
new Finder();
// Find all files in Administration/Resources/app/administration/src/module except for de-DE.json and en-GB.json
$finder->
in($adminDir . '/Resources/app/administration/src/module'
) ->
notName('de-DE.json'
) ->
notName('en-GB.json'
) ->
files();
foreach ($finder as $file) { unlink($file->
getRealPath());
} $progressBar->
advance(25
);
$this->
deleteEmptyDirectories($adminDir . '/Resources/app/administration/src/module'
);
$progressBar->
advance(25
);