[Security] Fix TraceableAccessDecisionManager / DebugAccessDecisionManager BC layer
This commit is contained in:
parent
f56245594c
commit
5b123b9674
@ -11,12 +11,26 @@
|
||||
|
||||
namespace Symfony\Component\Security\Core\Authorization;
|
||||
|
||||
/*
|
||||
* @internal
|
||||
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.
|
||||
*
|
||||
* 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.
|
||||
* @internal
|
||||
*/
|
||||
class_exists(TraceableAccessDecisionManager::class);
|
||||
class DebugAccessDecisionManager implements AccessDecisionManagerInterface
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function decide(TokenInterface $token, array $attributes, $object = null)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user