Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
validateRefreshableApps example
if
(
!
$input
->
getOption
(
'force'
)
)
{
try
{
$this
->
grantPermissions
(
$refreshableApps
,
$io
)
;
}
catch
(
UserAbortedCommandException
)
{
$io
->
error
(
'Aborting due to user input.'
)
;
return
self::FAILURE;
}
}
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
)
;