// installed, so we prevent it from being registered to the path processor
// manager. We do this by removing the tags that the compiler pass looks
// for. This means that the URL generator can safely be used within tests.
$container->
getDefinition('path_alias.path_processor'
) ->
clearTag('path_processor_inbound'
) ->
clearTag('path_processor_outbound'
);
} // Relax the password hashing cost in tests to avoid performance issues.
if ($container->
hasDefinition('password'
)) { $container->
getDefinition('password'
) ->
setArguments([PASSWORD_BCRYPT,
['cost' => 4
]]);
} // Add the on demand rebuild route provider service.
$route_provider_service_name = 'router.route_provider';
// While $container->get() does a recursive resolve, getDefinition() does
// not, so do it ourselves.
$id =
$route_provider_service_name;
while ($container->
hasAlias($id)) { $id =
(string) $container->
getAlias($id);
} $definition =
$container->
getDefinition($id);