Skip to content

Commit 5ba6a0a

Browse files
committed
[security] Mark TokenFactory as deprecated. Use one from bridge.
1 parent 1e3aa12 commit 5ba6a0a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Security/TokenFactory.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
use Payum\Core\Storage\StorageInterface;
88
use Symfony\Component\Routing\RouterInterface;
99

10+
/**
11+
* @deprecated since 0.8.1 will be removed in 0.9. Use TokenFactory from bridge.
12+
*/
1013
class TokenFactory extends AbstractGenericTokenFactory
1114
{
1215
/**
@@ -15,15 +18,15 @@ class TokenFactory extends AbstractGenericTokenFactory
1518
protected $router;
1619

1720
/**
18-
* @param RouterInterface $router
21+
* @param RouterInterface $urlGenerator
1922
* @param StorageInterface $tokenStorage
2023
* @param StorageRegistryInterface $storageRegistry
2124
* @param string $capturePath
2225
* @param string $notifyPath
2326
*/
24-
public function __construct(RouterInterface $router, StorageInterface $tokenStorage, StorageRegistryInterface $storageRegistry, $capturePath, $notifyPath)
27+
public function __construct(RouterInterface $urlGenerator, StorageInterface $tokenStorage, StorageRegistryInterface $storageRegistry, $capturePath, $notifyPath)
2528
{
26-
$this->router = $router;
29+
$this->router = $urlGenerator;
2730

2831
parent::__construct($tokenStorage, $storageRegistry, $capturePath, $notifyPath);
2932
}

0 commit comments

Comments
 (0)