Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getAdminInfoFromArgs example
$shop
=
$this
->
getShopInfoFromInteractiveShell
(
$shop
)
;
if
(
$this
->IOHelper->
isInteractive
(
)
&& !
$this
->
webserverCheck
(
$container
,
$shop
)
)
{
$this
->IOHelper->
writeln
(
'Could not verify'
)
;
if
(
!
$this
->IOHelper->
askConfirmation
(
'Continue?'
)
)
{
return
1;
}
}
$adminUser
=
new
AdminUser
(
)
;
if
(
!
$input
->
getOption
(
'skip-admin-creation'
)
)
{
$adminUser
=
$this
->
getAdminInfoFromArgs
(
$input
,
$adminUser
)
;
$adminUser
=
$this
->
getAdminInfoFromInteractiveShell
(
$adminUser
)
;
}
$shopService
=
new
ShopService
(
$conn
,
$container
[
'uniqueid.generator'
]
)
;
$shopService
->
updateShop
(
$shop
)
;
$shopService
->
updateConfig
(
$shop
)
;
$currencyService
=
new
CurrencyService
(
$conn
)
;
$currencyService
->
updateCurrency
(
$shop
)
;
$localeService
=
new
LocaleSettingsService
(
$conn
,
$container
)
;