protected function resolveServices()
    {
        // Do real export services when the server is launching.
        $this->app['events']->listen(ServerLaunching::class, function () {
            $services = Arr::get($this->config, 'services');

            if (! is_array($services) || empty($services)) {
                return;
            }

            foreach ($services as $config) {
                $this->resolveService($config);
            }
        });
    }