// 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
);
// Find all the following directories and files and delete them
$this->
removeDirectory($adminDir . '/Resources/app/administration/src/app/adapter'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/src/app/assets'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/src/app/asyncComponent'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/src/app/component'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/src/app/decorator'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/src/app/directive'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/src/app/filter'
);
$this->
removeDirectory($adminDir . '/Resources/app/administration/src/app/init'
);