GxLogoSaveCommand
extends AbstractSaveCommand
in package
Class GxLogoSaveCommand
Table of Contents
- GM_LOGO_CONFIGURATION_KEY = 'GM_LOGO_SHOP'
- GM_LOGO_WEBPATH = 'images/logos/'
- $option : AbstractOption
- $service : GmConfigurationServiceInterface
- $configurationRepository : SettingsRepository
- __construct() : mixed
- GxLogoSaveCommand constructor.
- execute() : void
- Execute the command
- rollback() : void
- Execute the command
- setConfigurationRepository() : void
- setOption() : void
- configurationRepository() : SettingsRepository
- saveOption() : void
Constants
GM_LOGO_CONFIGURATION_KEY
protected
string
GM_LOGO_CONFIGURATION_KEY
= 'GM_LOGO_SHOP'
GM_LOGO_WEBPATH
protected
string
GM_LOGO_WEBPATH
= 'images/logos/'
Properties
$option
protected
AbstractOption
$option
$service
protected
GmConfigurationServiceInterface
$service
$configurationRepository
private
SettingsRepository
$configurationRepository
Methods
__construct()
GxLogoSaveCommand constructor.
public
__construct(GmConfigurationServiceInterface $service) : mixed
Parameters
- $service : GmConfigurationServiceInterface
Return values
mixed —execute()
Execute the command
public
execute() : void
Return values
void —rollback()
Execute the command
public
rollback() : void
Return values
void —setConfigurationRepository()
public
setConfigurationRepository(SettingsRepository $configurationRepository) : void
Parameters
- $configurationRepository : SettingsRepository
Return values
void —setOption()
public
setOption(OptionInterface $option) : void
Parameters
- $option : OptionInterface
Return values
void —configurationRepository()
protected
configurationRepository() : SettingsRepository
Tags
Return values
SettingsRepository —saveOption()
protected
saveOption() : void