From 18868e3e1b19d75eebd38f41530ef0be723baf39 Mon Sep 17 00:00:00 2001 From: Kotlyar Maksim Date: Mon, 14 Apr 2014 19:30:05 +0000 Subject: [PATCH] [security][symfony] Fix fatal error on old symfony versions. PHP Fatal error: Undefined class constant 'ABSOLUTE_URL' in .... --- Bridge/Symfony/Security/TokenFactory.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Bridge/Symfony/Security/TokenFactory.php b/Bridge/Symfony/Security/TokenFactory.php index 3ff98a3..c9612c9 100644 --- a/Bridge/Symfony/Security/TokenFactory.php +++ b/Bridge/Symfony/Security/TokenFactory.php @@ -3,7 +3,6 @@ use Payum\Core\Registry\StorageRegistryInterface; use Payum\Core\Security\AbstractGenericTokenFactory; -use Payum\Core\Security\TokenInterface; use Payum\Core\Storage\StorageInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; @@ -36,6 +35,6 @@ public function __construct(UrlGeneratorInterface $urlGenerator, StorageInterfac */ protected function generateUrl($path, array $parameters = array()) { - return $this->urlGenerator->generate($path, $parameters, UrlGeneratorInterface::ABSOLUTE_URL); + return $this->urlGenerator->generate($path, $parameters, true); } -} \ No newline at end of file +}