Magento 2 – Fatal error: Uncaught TypeError: Argument 2 passed to __construct()
If after creating a new controller you are presented with the php error –
Fatal error: Uncaught TypeError: Argument 2 passed to __construct()
Remove the following directories
cd ./var/ rm generation/ cache/ page_cache/ -dfrv
Gareth