Hi 
In slim 4, if you do not want to inject the needed dependencies into App(), you should use the Factory provided.
use Slim\Factory\AppFactory;
$app = AppFactory::create();
Slim website has it on the front page http://www.slimframework.com/
Hope it helps.