diff --git a/src/Symfony/Component/Security/Core/Authorization/DebugAccessDecisionManager.php b/src/Symfony/Component/Security/Core/Authorization/DebugAccessDecisionManager.php index 59a47969e329b..aaf04a4fb00cc 100644 --- a/src/Symfony/Component/Security/Core/Authorization/DebugAccessDecisionManager.php +++ b/src/Symfony/Component/Security/Core/Authorization/DebugAccessDecisionManager.php @@ -11,12 +11,26 @@ namespace Symfony\Component\Security\Core\Authorization; -/* - * @internal - * - * @deprecated The DebugAccessDecisionManager class has been renamed and is deprecated since version 3.3 and will be removed in 4.0. Use the TraceableAccessDecisionManager class instead. - * - * This is a placeholder for the old class, that got renamed; this is not a BC break since the class is internal, this - * placeholder is here just to help backward compatibility with older SecurityBundle versions. - */ +use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; + class_exists(TraceableAccessDecisionManager::class); + +if (false) { + /** + * This is a placeholder for the old class, that got renamed; this is not a BC break since the class is internal, this + * placeholder is here just to help backward compatibility with older SecurityBundle versions. + * + * @deprecated The DebugAccessDecisionManager class has been renamed and is deprecated since version 3.3 and will be removed in 4.0. Use the TraceableAccessDecisionManager class instead. + * + * @internal + */ + class DebugAccessDecisionManager implements AccessDecisionManagerInterface + { + /** + * {@inheritdoc} + */ + public function decide(TokenInterface $token, array $attributes, $object = null) + { + } + } +} diff --git a/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php b/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php index f07f117eec306..1e3ed546c8aee 100644 --- a/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php +++ b/src/Symfony/Component/Security/Core/Authorization/TraceableAccessDecisionManager.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Security\Core\Authorization; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; +use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; /** * Decorates the original AccessDecisionManager class to log information