Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
grantPermissionsForApp example
sprintf
(
"%d apps will be installed, %d apps will be updated and %d apps will be deleted.\nDo you want to continue?",
\
count
(
$refreshableApps
->
getToBeInstalled
(
)
)
,
\
count
(
$refreshableApps
->
getToBeUpdated
(
)
)
,
\
count
(
$refreshableApps
->
getToBeDeleted
(
)
)
)
)
)
{
throw
new
UserAbortedCommandException
(
)
;
}
foreach
(
$refreshableApps
->
getToBeInstalled
(
)
as
$app
)
{
$this
->
grantPermissionsForApp
(
$app
,
$io
)
;
$this
->appPrinter->
checkHosts
(
$app
,
$io
)
;
}
foreach
(
$refreshableApps
->
getToBeUpdated
(
)
as
$app
)
{
$this
->
grantPermissionsForApp
(
$app
,
$io
, false
)
;
$this
->appPrinter->
checkHosts
(
$app
,
$io
)
;
}
}