Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
findServiceIdsContaining example
$kernel
=
$this
->
getApplication
(
)
->
getKernel
(
)
;
$object
=
$this
->
getContainerBuilder
(
$kernel
)
;
if
(
$input
->
mustSuggestArgumentValuesFor
(
'name'
)
&& !
$input
->
getOption
(
'tag'
)
&& !
$input
->
getOption
(
'tags'
)
&& !
$input
->
getOption
(
'parameter'
)
&& !
$input
->
getOption
(
'parameters'
)
&& !
$input
->
getOption
(
'env-var'
)
&& !
$input
->
getOption
(
'env-vars'
)
&& !
$input
->
getOption
(
'types'
)
&& !
$input
->
getOption
(
'deprecations'
)
)
{
$suggestions
->
suggestValues
(
$this
->
findServiceIdsContaining
(
$object
,
$input
->
getCompletionValue
(
)
,
(bool)
$input
->
getOption
(
'show-hidden'
)
)
)
;
return
;
}
if
(
$input
->
mustSuggestOptionValuesFor
(
'tag'
)
)
{
$suggestions
->
suggestValues
(
$object
->
findTags
(
)
)
;