Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getShopInfoFromInteractiveShell example
$skipImport
=
$databaseService
->
containsShopwareSchema
(
)
&&
$input
->
getOption
(
'no-skip-import'
)
&&
$this
->
shouldSkipImport
(
)
;
if
(
!
$skipImport
)
{
$this
->
importDatabase
(
)
;
$this
->
importSnippets
(
)
;
}
$shop
=
new
Shop
(
)
;
$shop
=
$this
->
getShopInfoFromArgs
(
$input
,
$shop
)
;
$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
)
;