Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit db06c07

Browse filesBrowse files
committed
[HttpKernel] Remove dead code in DebugHandlersListener
1 parent 5e3338c commit db06c07
Copy full SHA for db06c07

File tree

2 files changed

+6
-11
lines changed
Filter options

2 files changed

+6
-11
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Resources/config/debug_prod.xml

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Resources/config/debug_prod.xml
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<argument>null</argument><!-- Log levels map for enabled error levels -->
2020
<argument>%debug.error_handler.throw_at%</argument>
2121
<argument>%kernel.debug%</argument>
22-
<argument type="service" id="debug.file_link_formatter" />
2322
<argument>%kernel.debug%</argument>
2423
</service>
2524

‎src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php
+6-10Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Symfony\Component\ErrorHandler\ErrorHandler;
2121
use Symfony\Component\EventDispatcher\Event;
2222
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
23-
use Symfony\Component\HttpKernel\Debug\FileLinkFormatter;
2423
use Symfony\Component\HttpKernel\Event\KernelEvent;
2524
use Symfony\Component\HttpKernel\KernelEvents;
2625

@@ -38,27 +37,24 @@ class DebugHandlersListener implements EventSubscriberInterface
3837
private $levels;
3938
private $throwAt;
4039
private $scream;
41-
private $fileLinkFormat;
4240
private $scope;
4341
private $firstCall = true;
4442
private $hasTerminatedWithException;
4543

4644
/**
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
5350
*/
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)
5552
{
5653
$this->exceptionHandler = $exceptionHandler;
5754
$this->logger = $logger;
5855
$this->levels = null === $levels ? \E_ALL : $levels;
5956
$this->throwAt = \is_int($throwAt) ? $throwAt : (null === $throwAt ? null : ($throwAt ? \E_ALL : null));
6057
$this->scream = $scream;
61-
$this->fileLinkFormat = $fileLinkFormat;
6258
$this->scope = $scope;
6359
}
6460

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.