Skip to content

Commit 46deb64

Browse files
committed
Changed constructor to use interface instead of direct classname
Constructor should use an interface instead of a direct classname so it can be overwritten when necessary. In the di.xml this was already done, but in this constructor it didn't use the interface yet, so this has been changed.
1 parent bd1655b commit 46deb64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/App/FrontController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class FrontController implements FrontControllerInterface
2424
* @param \Magento\Framework\App\Response\Http $response
2525
*/
2626
public function __construct(
27-
RouterList $routerList,
27+
RouterListInterface $routerList,
2828
\Magento\Framework\App\Response\Http $response
2929
) {
3030
$this->_routerList = $routerList;

0 commit comments

Comments
 (0)