* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\SecurityBundle\RememberMe; use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Http\RememberMe\RememberMeDetails; use Symfony\Component\Security\Http\RememberMe\RememberMeHandlerInterface; /** * Used as a "workaround" for tagging aliases in the RememberMeFactory. * * @author Wouter de Jong * * @internal */ final class DecoratedRememberMeHandler implements RememberMeHandlerInterface { private RememberMeHandlerInterface $handler; public function __construct(RememberMeHandlerInterface $handler) { $this->handler = $handler; } public function createRememberMeCookie(UserInterface $user): void { $this->handler->createRememberMeCookie($user); } public function consumeRememberMeCookie(RememberMeDetails $rememberMeDetails): UserInterface { return $this->handler->consumeRememberMeCookie($rememberMeDetails); } public function clearRememberMeCookie(): void { $this->handler->clearRememberMeCookie(); } }