protected function createFlashNotifier($alerts)
    {
        if ($session = $this->createSession()) {
            $alerts->addNotifier(
                new FlashNotifier('flash', static::$config, $session)
            );
        }
    }