protected function registerMultiSiteTenancy(Repository $config)
    {
        if (!$config->get('tenancy.multi_site.enabled', false)) {
            return;
        }

        if (!$this->app instanceof TenantAwareApplication) {
            throw new \RuntimeException(
                'Multi-site requires updating your bootstrap/app.php to use TenantAwareApplication'
            );
        }

        /*
         * @todo Need a way to detect if RouteServiceProvider (or at least an instance of
         *       Foundation\RouteServiceProvider) has been registered and to fail with a
         *       warning if so.
         */

        $this->registerMultiSiteParticipantRepository($config);
        $this->registerMultiSiteConsoleCommands();
        $this->registerTenantParticipantMappings($config->get('tenancy.multi_site.participant.mappings'));
    }