Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
createRoleHierarchy example
}
$container
->
setParameter
(
'security.authentication.hide_user_not_found',
$config
[
'hide_user_not_found'
]
)
;
if
(
class_exists
(
Application::
class
)
)
{
$loader
->
load
(
'debug_console.php'
)
;
}
$this
->
createFirewalls
(
$config
,
$container
)
;
$this
->
createAuthorization
(
$config
,
$container
)
;
$this
->
createRoleHierarchy
(
$config
,
$container
)
;
if
(
$config
[
'password_hashers'
]
)
{
$this
->
createHashers
(
$config
[
'password_hashers'
]
,
$container
)
;
}
if
(
class_exists
(
Application::
class
)
)
{
$loader
->
load
(
'console.php'
)
;
$container
->
getDefinition
(
'security.command.user_password_hash'
)
->
replaceArgument
(
1,
array_keys
(
$config
[
'password_hashers'
]
)
)
;
}