protected function setCurrentTheme(Application $app)
    {
        $memory = $app->make('antares.memory')->makeOrFallback();
        $app->make('antares.theme')->setTheme($memory->get('site.theme.frontend'));

        $events = $app->make('events');

        $events->listen(AdminStarted::class, function () use ($app, $memory, $events) {
            $theme = $app->make('antares.theme');
            if (auth()->isAny(['member'])) {
                $theme->setTheme($memory->get('site.theme.frontend'));
            } else {
                $theme->setTheme($memory->get('site.theme.backend'));
            }
        });

        $events->listen('composing: *', function () use ($app) {
            $app->make('antares.theme')->boot();
        });
    }