20
20
use Symfony \Component \ErrorHandler \ErrorHandler ;
21
21
use Symfony \Component \EventDispatcher \Event ;
22
22
use Symfony \Component \EventDispatcher \EventSubscriberInterface ;
23
- use Symfony \Component \HttpKernel \Debug \FileLinkFormatter ;
24
23
use Symfony \Component \HttpKernel \Event \KernelEvent ;
25
24
use Symfony \Component \HttpKernel \KernelEvents ;
26
25
@@ -38,27 +37,24 @@ class DebugHandlersListener implements EventSubscriberInterface
38
37
private $ levels ;
39
38
private $ throwAt ;
40
39
private $ scream ;
41
- private $ fileLinkFormat ;
42
40
private $ scope ;
43
41
private $ firstCall = true ;
44
42
private $ hasTerminatedWithException ;
45
43
46
44
/**
47
- * @param callable|null $exceptionHandler A handler that must support \Throwable instances that will be called on Exception
48
- * @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants
49
- * @param int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value
50
- * @param bool $scream Enables/disables screaming mode, where even silenced errors are logged
51
- * @param string|FileLinkFormatter|null $fileLinkFormat The format for links to source files
52
- * @param bool $scope Enables/disables scoping mode
45
+ * @param callable|null $exceptionHandler A handler that must support \Throwable instances that will be called on Exception
46
+ * @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants
47
+ * @param int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value
48
+ * @param bool $scream Enables/disables screaming mode, where even silenced errors are logged
49
+ * @param bool $scope Enables/disables scoping mode
53
50
*/
54
- public function __construct (callable $ exceptionHandler = null , LoggerInterface $ logger = null , $ levels = \E_ALL , ?int $ throwAt = \E_ALL , bool $ scream = true , $ fileLinkFormat = null , bool $ scope = true )
51
+ public function __construct (callable $ exceptionHandler = null , LoggerInterface $ logger = null , $ levels = \E_ALL , ?int $ throwAt = \E_ALL , bool $ scream = true , bool $ scope = true )
55
52
{
56
53
$ this ->exceptionHandler = $ exceptionHandler ;
57
54
$ this ->logger = $ logger ;
58
55
$ this ->levels = null === $ levels ? \E_ALL : $ levels ;
59
56
$ this ->throwAt = \is_int ($ throwAt ) ? $ throwAt : (null === $ throwAt ? null : ($ throwAt ? \E_ALL : null ));
60
57
$ this ->scream = $ scream ;
61
- $ this ->fileLinkFormat = $ fileLinkFormat ;
62
58
$ this ->scope = $ scope ;
63
59
}
64
60
0 commit comments