protected function bootstrap()
    {
        if ($this->framework === 'laravel') {
            $bootstrappers = $this->getBootstrappers();
            $this->app->bootstrapWith($bootstrappers);
        } else {
            // for Lumen 5.7
            // https://github.com/laravel/lumen-framework/commit/42cbc998375718b1a8a11883e033617024e57260#diff-c9248b3167fc44af085b81db2e292837
            if (method_exists($this->app, 'boot')) {
                $this->app->boot();
            }
            $this->app->withFacades();
        }

        $this->preResolveInstances();
    }