mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-03 18:38:31 +03:00
Use "RouterInterface" instead of "Router" in "AbstractController"
This commit is contained in:
parent
2ab669ba3a
commit
42c1d4e340
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user