Skip to content

Commit 4698e76

Browse files
timmtimNyholm
authored andcommitted
depend on router interface instead of concrete implementation (#144)
* depend on router interface instead of concrete implementation * change type hint to UrlGeneratorInterface
1 parent af94b00 commit 4698e76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

EventListener/EditInPlaceResponseListener.php

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

1414
use Symfony\Component\Asset\Packages;
1515
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
16-
use Symfony\Component\Routing\Router;
16+
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
1717
use Translation\Bundle\EditInPlace\ActivatorInterface;
1818

1919
/**
@@ -44,7 +44,7 @@ final class EditInPlaceResponseListener
4444
private $activator;
4545

4646
/**
47-
* @var Router
47+
* @var UrlGeneratorInterface
4848
*/
4949
private $router;
5050

@@ -65,7 +65,7 @@ final class EditInPlaceResponseListener
6565
*/
6666
private $showUntranslatable;
6767

68-
public function __construct(ActivatorInterface $activator, Router $router, Packages $packages, $configName = 'default', $showUntranslatable = true)
68+
public function __construct(ActivatorInterface $activator, UrlGeneratorInterface $router, Packages $packages, $configName = 'default', $showUntranslatable = true)
6969
{
7070
$this->activator = $activator;
7171
$this->router = $router;

0 commit comments

Comments
 (0)