Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
SessionValueResolver example
return
$arguments
;
}
/** * @return iterable<int, ArgumentValueResolverInterface> */
public
static
function
getDefaultArgumentValueResolvers
(
)
: iterable
{
return
[
new
RequestAttributeValueResolver
(
)
,
new
RequestValueResolver
(
)
,
new
SessionValueResolver
(
)
,
new
DefaultValueResolver
(
)
,
new
VariadicValueResolver
(
)
,
]
;
}
private
function
getPrettyName
(
$controller
)
: string
{
if
(
\
is_array
(
$controller
)
)
{
if
(
\
is_object
(
$controller
[
0
]
)
)
{
$controller
[
0
]
=
get_debug_type
(
$controller
[
0
]
)
;
}
return
$arguments
;
}
/** * @return iterable<int, ArgumentValueResolverInterface> */
public
static
function
getDefaultArgumentValueResolvers
(
)
: iterable
{
return
[
new
RequestAttributeValueResolver
(
)
,
new
RequestValueResolver
(
)
,
new
SessionValueResolver
(
)
,
new
DefaultValueResolver
(
)
,
new
VariadicValueResolver
(
)
,
]
;
}
private
function
getPrettyName
(
$controller
)
: string
{
if
(
\
is_array
(
$controller
)
)
{
if
(
\
is_object
(
$controller
[
0
]
)
)
{
$controller
[
0
]
=
get_debug_type
(
$controller
[
0
]
)
;
}