Changing PublicConfig to AppConfig, plus

Added curentController() in appShell.php. See file for details.