Skip to content

Commit

Permalink
[security][symfony] Fix fatal error on old symfony versions.
Browse files Browse the repository at this point in the history
PHP Fatal error:  Undefined class constant 'ABSOLUTE_URL' in ....
  • Loading branch information
makasim committed Apr 14, 2014
1 parent 6ba94e7 commit 18868e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Bridge/Symfony/Security/TokenFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}
}
}

0 comments on commit 18868e3

Please sign in to comment.