mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-03 18:38:31 +03:00
Use RouterInterface in ConrollerResolver constructor
This commit is contained in:
parent
f4268b53cf
commit
3d8fa75d59
@ -17,23 +17,23 @@
|
|||||||
|
|
||||||
namespace Mibew\Controller;
|
namespace Mibew\Controller;
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
use Mibew\Routing\Router;
|
|
||||||
use Mibew\Routing\RouterAwareInterface;
|
use Mibew\Routing\RouterAwareInterface;
|
||||||
|
use Symfony\Component\Routing\RouterInterface;
|
||||||
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
class ControllerResolver
|
class ControllerResolver
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var Router|null
|
* @var RouterInterface|null
|
||||||
*/
|
*/
|
||||||
protected $router = null;
|
protected $router = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class constructor.
|
* Class constructor.
|
||||||
*
|
*
|
||||||
* @param Router $router Router instance.
|
* @param RouterInterface $router Router instance.
|
||||||
*/
|
*/
|
||||||
public function __construct(Router $router)
|
public function __construct(RouterInterface $router)
|
||||||
{
|
{
|
||||||
$this->router = $router;
|
$this->router = $router;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user