Flarum\Install\Console\UserDataProvider::getSettings PHP Метод

getSettings() публичный Метод

public getSettings ( )
    public function getSettings()
    {
        $title = $this->ask('Forum title:');
        $baseUrl = $this->baseUrl ?: 'http://localhost';
        return ['allow_post_editing' => 'reply', 'allow_renaming' => '10', 'allow_sign_up' => '1', 'custom_less' => '', 'default_locale' => 'en', 'default_route' => '/all', 'extensions_enabled' => '[]', 'forum_title' => $title, 'forum_description' => '', 'mail_driver' => 'mail', 'mail_from' => 'noreply@' . preg_replace('/^www\\./i', '', parse_url($baseUrl, PHP_URL_HOST)), 'theme_colored_header' => '0', 'theme_dark_mode' => '0', 'theme_primary_color' => '#4D698E', 'theme_secondary_color' => '#4D698E', 'welcome_message' => 'This is beta software and you should not use it in production.', 'welcome_title' => 'Welcome to ' . $title];
    }