get('providers'); /** @var (BootstrapperInterface|string)[] $bootstrappers */ $bootstrappers = $container->get('bootstrappers'); $app = new Application($container, (bool) env('DEBUG', true)); $app->addServiceProvider(...$providers) ->addBootstrapper(...$bootstrappers) ->boot(); return $container;