File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 17
17
use Symfony \Component \HttpFoundation \Session \Session ;
18
18
use Symfony \Component \HttpFoundation \Session \SessionInterface ;
19
19
use Symfony \Component \HttpFoundation \Session \SessionUtils ;
20
- use Symfony \Component \HttpKernel \Event \FinishRequestEvent ;
21
20
use Symfony \Component \HttpKernel \Event \RequestEvent ;
22
21
use Symfony \Component \HttpKernel \Event \ResponseEvent ;
23
22
use Symfony \Component \HttpKernel \Exception \UnexpectedSessionUsageException ;
@@ -179,7 +178,7 @@ public function onKernelResponse(ResponseEvent $event)
179
178
}
180
179
}
181
180
182
- if ($ session instanceof Session ? $ session ->getUsageIndex () === 0 : !$ session ->isStarted ()) {
181
+ if ($ session instanceof Session ? 0 === $ session ->getUsageIndex () : !$ session ->isStarted ()) {
183
182
return ;
184
183
}
185
184
Original file line number Diff line number Diff line change 24
24
*/
25
25
class AddRequestFormatsListener implements EventSubscriberInterface
26
26
{
27
- protected $ formats ;
27
+ private array $ formats ;
28
28
29
29
public function __construct (array $ formats )
30
30
{
Original file line number Diff line number Diff line change 29
29
*/
30
30
class ProfilerListener implements EventSubscriberInterface
31
31
{
32
- protected $ profiler ;
33
- protected $ matcher ;
34
- protected $ onlyException ;
35
- protected $ onlyMainRequests ;
36
- protected $ exception ;
37
- protected $ profiles ;
38
- protected $ requestStack ;
39
- protected $ parents ;
32
+ private Profiler $ profiler ;
33
+ private ? RequestMatcherInterface $ matcher ;
34
+ private bool $ onlyException ;
35
+ private bool $ onlyMainRequests ;
36
+ private ? \ Throwable $ exception = null ;
37
+ private \ SplObjectStorage $ profiles ;
38
+ private RequestStack $ requestStack ;
39
+ private \ SplObjectStorage $ parents ;
40
40
41
41
/**
42
42
* @param bool $onlyException True if the profiler only collects data when an exception occurs, false otherwise
You can’t perform that action at this time.
0 commit comments