$style =
new ShopwareStyle($input,
$output);
$style->
warning('If both private and public objects are stored in the same bucket, this command will set all of them public.'
);
$continue =
$style->
confirm('Continue?'
);
if (!
$continue) { return (int) Command::SUCCESS;
} $style->
comment('Setting visibility to private in private bucket.'
);
$this->
setVisibility($this->filesystemPrivate,
$style, 'private'
);
$style->
comment('Setting visibility to public in public bucket.'
);
$this->
setVisibility($this->filesystemPublic,
$style, 'public'
);
$style->
comment('Setting visibility to public in theme bucket.'
);
$this->
setVisibility($this->filesystemTheme,
$style, 'public'
);
$style->
comment('Setting visibility to public in sitemap bucket.'
);
$this->
setVisibility($this->filesystemSitemap,
$style, 'public'
);
$style->
comment('Setting visibility to public in asset bucket.'
);
$this->
setVisibility($this->filesystemAsset,
$style, 'public'
);
$style->
info('Finished setting visibility of objects in all pre-defined buckets.'
);