Moving app creation to boot.php