1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
<?php
/**
* Production Configuration class.
*
* All settings and configuration for the application.
*
* @package Silla.IO
* @subpackage Configurations\Production
* @author Plamen Nikolov <plamen@athlonsofia.com>
* @copyright Copyright (c) 2015, Silla.io
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3.0 (GPLv3)
*/
namespace Configurations\Production;
use Core;
/**
* Configuration class implementation.
*/
class Configuration extends Core\Base\Configuration
{
/**
* @var boolean[] $ASSETS Assets Management options flags.
*
* @example cache Whether to cache all assets groups on the file system.
* @example combine Whether to combine all assets groups in one file.
* @example optimize Whether to minify assets.
*/
public $ASSETS = array(
'cache' => true,
'combine' => true,
'optimize' => true,
);
/**
* @var string[] $ROUTER Router related configuration options.
*
* @example rewrite Whether to support url rewrite or not.
* @example separator URL elements separator.
* @example variables_prefix Routes variables notation prefix. Must be different from the 'separator'.
*/
public $ROUTER = array(
'rewrite' => true,
'separator' => '/',
'variables_prefix' => ':',
);
/**
* @var array $CACHE Cache related configuration options.
*
* @example adapter Caching adapter name.
* @example routes Whether to cache Routing routes.
* @example labels Whether to cache Localisation labels.
* @example db_schema Whether to cache Database Entity tables schemas.
* @example database Database cache adapter database schema.
* @example redis Redis cache adapter connection parameters.
*/
public $CACHE = array(
'adapter' => 'FileSystem',
'routes' => true,
'labels' => true,
'db_schema' => true,
'database' => array(
'table_name' => 'cache',
'fields' => array(
'cache_key',
'value',
'expire',
),
),
'redis' => array(
'scheme' => 'tcp',
'host' => '127.0.0.1',
'port' => 6379,
'timeout' => 5.0,
),
);
/**
* @var (int|string)[] $MAILER Mailer configuration options.
*
* @example type Type of the mailing infrastructure to use(Sendmail|SMTP).
* @example identity Mailer identity signature.
* @example credentials Mailer service credentials.
*/
public $MAILER = array(
'type' => 'Sendmail',
'debug' => false,
'identity' => array(
'name' => 'Athlon Production',
'email' => 'hi@athlonproduction.com',
),
'credentials' => array(
'smtp' => array(
'host' => 'localhost',
'port' => '25',
'user' => '',
'password' => '',
),
),
);
/**
* @var string[] $RENDER Render engine configuration.
*
* @example adapter Render adapter name.
*/
public $RENDER = array(
'adapter' => 'Core\Modules\Render\Adapters\Smarty',
'options' => array(
'strip_white_space' => true,
),
);
/**
* @var (int|string)[] $DB DSN (Data source name).
*
* @example adapter Adapter type (pdo_mysql|mysqli|mysql|sqlite).
* @example host Connection host name, or sqlite db file location.
* @example port Connection host port.
* @example user User name.
* @example password Password phrase.
* @example name Database name.
* @example tables_prefix Storage tables prefix.
* @example encryption_key Database encryption key.
* @example crypt_vector Initialization Vector value.
*/
public $DB = array(
'adapter' => 'pdo_mysql',
'host' => '<DB_HOST>',
'port' => 3306,
'user' => '<DB_USER>',
'password' => '<DB_PASSWORD>',
'name' => '<DB_NAME>',
'tables_prefix' => '',
'encryption_key' => '25c6c7ff35bd13b0ff9979b151f2136c',
'crypt_vector' => 'dasn312321nssa1k',
);
/**
* @var (int|string)[] User cookie authentication data.
*
* @example cookie_name Name of the cookie.
* @example cookie_salt Cookie value salt..
* @example cookie_expiration Cookie expiration time in seconds.
*/
public $USER_AUTH = array(
'cookie_name' => 'ath_login',
'cookie_salt' => 'dasxnq20934@*jaa!@sajx',
'cookie_expiration' => 604800,
);
/**
* @var string[] Captcha credentials.
*
* @example enabled Flag whether to use Captcha or Not.
* @example public_key Public key for Captcha.
* @example private_key Private key for Captcha.
*
* @link https://www.google.com/recaptcha/
*/
public $CAPTCHA = array(
'enabled' => true,
'public_key' => '6LfSevQSAAAAAHUbl-gTGwQHi4C9UW219V0Nn6J5',
'private_key' => '6LfSevQSAAAAAB6H3f9OznBVUGBp0iMMZWX2OSFH',
);
/**
* @var int Number of unsuccessful CMS user login attempts that block the user
*
*/
public $USER_MAX_LOGIN_ATT = 3;
/**
* @var int Number of unsuccessful CMS user login attempts before showing CAPTCHA
*/
public $CAPTCHA_LOGIN_ATT = 2;
}