Update Controller.php

re-apply config