Newer
Older
framework / system / Test / Mock / MockCLIConfig.php
@MGatner MGatner on 7 Sep 2021 1 KB Release v4.1.4
<?php

/**
 * This file is part of CodeIgniter 4 framework.
 *
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace CodeIgniter\Test\Mock;

use Config\App;

class MockCLIConfig extends App
{
    public $baseURL = 'http://example.com/';

    public $uriProtocol = 'REQUEST_URI';

    public $cookiePrefix   = '';
    public $cookieDomain   = '';
    public $cookiePath     = '/';
    public $cookieSecure   = false;
    public $cookieHTTPOnly = false;
    public $cookieSameSite = 'Lax';

    public $proxyIPs = '';

    public $CSRFProtection  = false;
    public $CSRFTokenName   = 'csrf_test_name';
    public $CSRFCookieName  = 'csrf_cookie_name';
    public $CSRFExpire      = 7200;
    public $CSRFRegenerate  = true;
    public $CSRFExcludeURIs = ['http://example.com'];
    public $CSRFSameSite    = 'Lax';

    public $CSPEnabled = false;

    public $defaultLocale    = 'en';
    public $negotiateLocale  = false;
    public $supportedLocales = [
        'en',
        'es',
    ];
}