File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \SecurityBundle \Templating \Helper ;
13
13
14
14
use Symfony \Component \DependencyInjection \ContainerInterface ;
15
- use Symfony \Component \HttpFoundation \RequestStack ;
16
15
use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
17
16
use Symfony \Component \Security \Http \Logout \LogoutUrlGenerator ;
18
17
use Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface ;
25
24
*/
26
25
class LogoutUrlHelper extends Helper
27
26
{
28
- private $ requestStack ;
27
+ private $ generator ;
29
28
private $ listeners = array ();
30
29
private $ router ;
31
30
private $ tokenStorage ;
@@ -42,7 +41,7 @@ class LogoutUrlHelper extends Helper
42
41
*/
43
42
public function __construct ($ generator , UrlGeneratorInterface $ router = null , TokenStorageInterface $ tokenStorage = null )
44
43
{
45
- if ($ requestStack instanceof ContainerInterface) {
44
+ if ($ generator instanceof ContainerInterface) {
46
45
trigger_error ('The ' .__CLASS__ .' constructor will require a LogoutUrlGenerator instead of a ContainerInterface instance in 3.0. ' , E_USER_DEPRECATED );
47
46
48
47
if ($ container ->has ('security.logout_url_generator ' )) {
You can’t perform that action at this time.
0 commit comments