Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
findProperTagName example
$parameters
=
[
]
;
foreach
(
$object
->
getParameterBag
(
)
->
all
(
)
as
$k
=>
$v
)
{
$parameters
[
$k
]
=
$object
->
resolveEnvPlaceholders
(
$v
)
;
}
$object
=
new
ParameterBag
(
$parameters
)
;
$options
=
[
]
;
}
elseif
(
$parameter
=
$input
->
getOption
(
'parameter'
)
)
{
$options
=
[
'parameter' =>
$parameter
]
;
}
elseif
(
$input
->
getOption
(
'tags'
)
)
{
$options
=
[
'group_by' => 'tags'
]
;
}
elseif
(
$tag
=
$input
->
getOption
(
'tag'
)
)
{
$tag
=
$this
->
findProperTagName
(
$input
,
$errorIo
,
$object
,
$tag
)
;
$options
=
[
'tag' =>
$tag
]
;
}
elseif
(
$name
=
$input
->
getArgument
(
'name'
)
)
{
$name
=
$this
->
findProperServiceName
(
$input
,
$errorIo
,
$object
,
$name
,
$input
->
getOption
(
'show-hidden'
)
)
;
$options
=
[
'id' =>
$name
]
;
}
elseif
(
$input
->
getOption
(
'deprecations'
)
)
{
$options
=
[
'deprecations' => true
]
;
}
else
{
$options
=
[
]
;
}
$helper
=
new
DescriptorHelper
(
)
;