Skip to content

Commit

Permalink
Changed constructor to use an interface
Browse files Browse the repository at this point in the history
Changed the constructor of the FrontController class to user a RouterListInterface instead of RouterList object. The preference for the RouterListInterface is already in /app/etc/di.xml, but is not being used. Changed to code to use an interface in this constructor.
  • Loading branch information
dverkade committed Oct 26, 2016
1 parent bd1655b commit 4ed404f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/Magento/Framework/App/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class FrontController implements FrontControllerInterface
{
/**
* @var RouterList
* @var RouterListInterface
*/
protected $_routerList;

Expand All @@ -24,7 +24,7 @@ class FrontController implements FrontControllerInterface
* @param \Magento\Framework\App\Response\Http $response
*/
public function __construct(
RouterList $routerList,
RouterListInterface $routerList,
\Magento\Framework\App\Response\Http $response
) {
$this->_routerList = $routerList;
Expand Down

0 comments on commit 4ed404f

Please sign in to comment.