$targetDirectory =
$this->container->
get(PathResolver::
class)->
getFrontendThemeDirectory();
if (!
is_writable($targetDirectory)) { $this->
View()->
assign([ 'success' => false,
'error' =>
sprintf("Target Directory %s isn't writable",
$targetDirectory),
]);
return;
} $this->
unzip($file,
$targetDirectory);
$system->
remove($file->
getPathname());
$this->
View()->
assign('success', true
);
} /**
* @return void
*/
public function loadSettingsAction() {