[Security] Fix TraceableAccessDecisionManager / DebugAccessDecisionManager BC layer

This commit is contained in:
Maxime Steinhausser 2017-05-07 21:43:13 +02:00
parent f56245594c
commit 5b123b9674
2 changed files with 23 additions and 8 deletions

View File

@ -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)
{
}
}
}

View File

@ -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