Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getAppNames example
}
if
(
!
$input
->
getOption
(
'no-validate'
)
)
{
$hasViolations
=
$this
->
validateRefreshableApps
(
$refreshableApps
,
$io
,
$context
)
;
if
(
$hasViolations
=== 1
)
{
return
self::FAILURE;
}
}
$fails
=
$this
->appService->
doRefreshApps
(
$input
->
getOption
(
'activate'
)
,
$context
,
$refreshableApps
->
getAppNames
(
)
)
;
$this
->appPrinter->
printInstalledApps
(
$io
,
$context
)
;
$this
->appPrinter->
printIncompleteInstallations
(
$io
,
$fails
)
;
return
self::SUCCESS;
}
private
function
validateRefreshableApps
(
RefreshableAppDryRun
$refreshableApps
, ShopwareStyle
$io
, Context
$context
)
: int
{
$refreshableManifests
=
array_merge
(
$refreshableApps
->
getToBeInstalled
(
)
,