protected function registerAlertContainer()
    {
        $this->app->singleton('alert', function ($app) {
            $this->loadConfigurationOptions();

            $alert = new Alert(
                $this->getAlertHandler(),
                $this->getTheme()
            );

            if ($this->options['translate_texts']) {
                $alert->setLang($app['translator']);
            }

            return $alert;
        });

        $this->app->alias('alert', Alert::class);
    }