File tree Expand file tree Collapse file tree 3 files changed +10
-20
lines changed
src/Symfony/Bundle/SecurityBundle/Debug Expand file tree Collapse file tree 3 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \SecurityBundle \Debug ;
13
13
14
14
use Symfony \Component \Security \Http \Firewall \LegacyListenerTrait ;
15
+ use Symfony \Component \VarDumper \Caster \ClassStub ;
15
16
16
17
/**
17
18
* @author Robin Chalas <[email protected] >
@@ -39,4 +40,13 @@ public function getWrappedListener()
39
40
{
40
41
return $ this ->listener ;
41
42
}
43
+
44
+ public function getInfo (): array
45
+ {
46
+ return [
47
+ 'response ' => $ this ->response ,
48
+ 'time ' => $ this ->time ,
49
+ 'stub ' => $ this ->stub ?? $ this ->stub = ClassStub::wrapCallable ($ this ->listener ),
50
+ ];
51
+ }
42
52
}
Original file line number Diff line number Diff line change 16
16
use Symfony \Component \Security \Core \Exception \LazyResponseException ;
17
17
use Symfony \Component \Security \Http \Firewall \AbstractListener ;
18
18
use Symfony \Component \Security \Http \Firewall \ListenerInterface ;
19
- use Symfony \Component \VarDumper \Caster \ClassStub ;
20
19
21
20
/**
22
21
* Wraps a lazy security listener.
@@ -60,13 +59,4 @@ public function authenticate(RequestEvent $event)
60
59
61
60
return $ ret ;
62
61
}
63
-
64
- public function getInfo (): array
65
- {
66
- return [
67
- 'response ' => $ this ->response ,
68
- 'time ' => $ this ->time ,
69
- 'stub ' => $ this ->stub ?? $ this ->stub = ClassStub::wrapCallable ($ this ->listener ),
70
- ];
71
- }
72
62
}
Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \Component \HttpKernel \Event \RequestEvent ;
15
15
use Symfony \Component \Security \Http \Firewall \ListenerInterface ;
16
- use Symfony \Component \VarDumper \Caster \ClassStub ;
17
16
18
17
/**
19
18
* Wraps a security listener for calls record.
@@ -49,13 +48,4 @@ public function __invoke(RequestEvent $event)
49
48
$ this ->time = microtime (true ) - $ startTime ;
50
49
$ this ->response = $ event ->getResponse ();
51
50
}
52
-
53
- public function getInfo (): array
54
- {
55
- return [
56
- 'response ' => $ this ->response ,
57
- 'time ' => $ this ->time ,
58
- 'stub ' => $ this ->stub ?? $ this ->stub = ClassStub::wrapCallable ($ this ->listener ),
59
- ];
60
- }
61
51
}
You can’t perform that action at this time.
0 commit comments