Revert "Update AppController.php"

This reverts commit 2f3c0b0e5173af145cec6167aef23d3175f90fe5.