Fix order of object create in app, now u can use $app in the config.php