Closed
Description
Symfony version(s) affected: 5.2.6
Description
When preload is enabled, ErrorException is thrown.
Warning: Cannot declare class Symfony\Component\Security\Core\Authorization\DebugAccessDecisionManager, because the name is already in use
How to reproduce
Install current version of symfony/security-bundle and enable preload.
Possible Solution
Something like this, maybe:
if (!class_exists(DebugAccessDecisionManager::class)) {
class_alias(TraceableAccessDecisionManager::class, DebugAccessDecisionManager::class);
}