<commit_before><?php

namespace Backend\Modules\FormBuilder\Installer;

/*
 * This file is part of Fork CMS.
 *
 * For the full copyright and license information, please view the license
 * file that was distributed with this source code.
 */

use Backend\Core\Installer\ModuleInstaller;
use Common\ModuleExtraType;

/**
 * Installer for the form_builder module
 */
class Installer extends ModuleInstaller
{
    public function install(): void
    {
        $this->addModule('FormBuilder');
        $this->importSQL(__DIR__ . '/Data/install.sql');
        $this->importLocale(__DIR__ . '/Data/locale.xml');
        $this->configureBackendRights();
        $this->configureBackendNavigation();
        $this->configureFrontendPages();
    }

    private function configureBackendNavigation(): void
    {
        // Set navigation for "Modules"<commit_msg>FormBuilder now requires Google reCAPTCHA<commit_after><?php

namespace Backend\Modules\FormBuilder\Installer;

/*
 * This file is part of Fork CMS.
 *
 * For the full copyright and license information, please view the license
 * file that was distributed with this source code.
 */

use Backend\Core\Installer\ModuleInstaller;
use Common\ModuleExtraType;

/**
 * Installer for the form_builder module
 */
class Installer extends ModuleInstaller
{
    public function install(): void
    {
        $this->addModule('FormBuilder');
        $this->importSQL(__DIR__ . '/Data/install.sql');
        $this->importLocale(__DIR__ . '/Data/locale.xml');
        $this->configureSettings();
        $this->configureBackendRights();
        $this->configureBackendNavigation();
        $this->configureFrontendPages();
    }

    private function configureSettings(): void
    {
        $this->setSetting($this->getModule(), 'requires_google_recaptcha', true);
    }

    private function configureBackendNavigation(): void
    {
        // Set navigation for "Modules"
{'fraction_non_alphanumeric': 0.11389759665621735, 'fraction_numerical': 0.0, 'mean_word_length': 3.4022988505747125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6537339', 'n_tokens_mistral': 510, 'n_tokens_neox': 514, 'n_words': 135}