8000 Use UrlGeneratorInterface · symfony/symfony@edd0a76 · GitHub
[go: up one dir, main page]

Skip to content

Commit edd0a76

Browse files
committed
Use UrlGeneratorInterface
1 parent 95d4144 commit edd0a76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/HttpKernel/Debug/FileLinkFormatter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\HttpKernel\Debug;
1313

14-
use Symfony\Component\Routing\RouterInterface;
14+
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1515

1616
/**
1717
* Formats debug file links.
@@ -21,11 +21,11 @@
2121
class FileLinkFormatter implements \Serializable
2222
{
2323
private $fileLinkFormat;
24-
private $requestStack;
24+
private $router;
2525
private $baseDir;
2626
private $queryString;
2727

28-
public function __construct($fileLinkFormat = null, RouterInterface $router = null, $baseDir = null, $queryString = null)
28+
public function __construct($fileLinkFormat = null, UrlGeneratorInterface $router = null, $baseDir = null, $queryString = null)
2929
{
3030
$fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
3131
if ($fileLinkFormat && !is_array($fileLinkFormat)) {

0 commit comments

< 3192 div class="h4 pr-2">Comments
 (0)
0