Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getDomainFromArguments example
return
[
]
;
}
/** * {@inheritdoc} */
public
function
completeArgumentValues
(
$argumentName
, CompletionContext
$context
)
{
if
(
$argumentName
=== 'technical-name'
)
{
if
(
!\
is_null
(
$token
=
$this
->
getAuthenticationFromArguments
(
$context
->
getWords
(
)
)
)
)
{
$context
=
new
LicenceRequest
(
'en_GB',
$this
->
getVersionFromArguments
(
$context
->
getWords
(
)
)
,
$this
->
getDomainFromArguments
(
$context
->
getWords
(
)
)
,
$token
)
;
/** @var PluginStoreService $pluginStoreService */
$pluginStoreService
=
$this
->container->
get
(
PluginStoreService::
class
)
;
return
array_map
(
function
DLicenceStruct
$licence
)
{
return
$licence
->
getTechnicalName
(
)
;
}
,
$pluginStoreService
->
getLicences
(
$context
)
)
;
}
}
return
[
]
;
}