Use "RouterInterface" instead of "Router" in "AbstractController"

This commit is contained in:
Dmitriy Simushev 2014-07-04 12:24:21 +00:00
parent 2ab669ba3a
commit 42c1d4e340

View File

@ -19,11 +19,11 @@ namespace Mibew\Controller;
use Mibew\Authentication\AuthenticationManagerAwareInterface; use Mibew\Authentication\AuthenticationManagerAwareInterface;
use Mibew\Authentication\AuthenticationManagerInterface; use Mibew\Authentication\AuthenticationManagerInterface;
use Mibew\Routing\Router;
use Mibew\Routing\RouterAwareInterface; use Mibew\Routing\RouterAwareInterface;
use Mibew\Style\StyleInterface; use Mibew\Style\StyleInterface;
use Mibew\Style\PageStyle; use Mibew\Style\PageStyle;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\RedirectResponse;
/** /**
@ -32,7 +32,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse;
abstract class AbstractController implements RouterAwareInterface, AuthenticationManagerAwareInterface abstract class AbstractController implements RouterAwareInterface, AuthenticationManagerAwareInterface
{ {
/** /**
* @var Router|null * @var RouterInterface|null
*/ */
protected $router = null; protected $router = null;
@ -49,7 +49,7 @@ abstract class AbstractController implements RouterAwareInterface, Authenticatio
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function setRouter(Router $router) public function setRouter(RouterInterface $router)
{ {
$this->router = $router; $this->router = $router;
} }