File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
setup/src/Magento/Setup/Controller Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -47,22 +47,18 @@ class Navigation extends AbstractActionController
47
47
/**
48
48
* @param NavModel $navigation
49
49
* @param Status $status
50
- * @param ViewModel $viewModel
51
- * @param JsonModel $jsonModel
52
50
* @param ObjectManagerProvider $objectManagerProvider
53
51
*/
54
52
public function __construct (
55
53
NavModel $ navigation ,
56
54
Status $ status ,
57
- ViewModel $ viewModel ,
58
- JsonModel $ jsonModel ,
59
55
ObjectManagerProvider $ objectManagerProvider
60
56
) {
61
57
$ this ->navigation = $ navigation ;
62
58
$ this ->status = $ status ;
63
59
$ this ->objectManagerProvider = $ objectManagerProvider ->get ();
64
- $ this ->view = $ viewModel ;
65
- $ this ->json = $ jsonModel ;
60
+ $ this ->json = new JsonModel () ;
61
+ $ this ->view = new ViewModel () ;
66
62
$ this ->view ->setVariable ('menu ' , $ this ->navigation ->getMenuItems ());
67
63
$ this ->view ->setVariable ('main ' , $ this ->navigation ->getMainItems ());
68
64
}
You can’t perform that action at this time.
0 commit comments