Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

TraceableAccessDecisionManager.php and opcache.preload #40752

Copy link
Copy link
Closed
@omgmashina

Description

@omgmashina
Issue body actions

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

class_alias(TraceableAccessDecisionManager::class, DebugAccessDecisionManager::class);

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);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.