Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
99 lines (90 sloc) 4.11 KB
<?php
return [
'settings' => [
'determineRouteBeforeAppMiddleware' => true,
'displayErrorDetails' => false, // set to false in production
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
'public_path' => isset($_ENV['docker']) ? '/' : str_replace('index.php', '', $_SERVER['PHP_SELF']), // Relative to domain (e.g. project is in sub directory '/project/public/')
'cache_path' => __DIR__ . '/../cache/',
'config_path' => __DIR__ . '/../config/',
// Renderer settings
'renderer' => [
'debug' => FALSE,
'cache' => FALSE, // FALSE or path to cache folder "__DIR__ . '/../cache/'"
'template_path' => __DIR__ . '/../templates/',
],
// Google recaptcha
'recaptcha' => [
'site' => '',
'secret' => '',
],
// Google QR Code title
'2fa_qrc_title' => null,
// pages for the public
'active_pages' => [
'login' => TRUE,
'register' => TRUE,
],
// User validation
'validation' => [
'min_user_name_length' => 4,
'max_user_name_length' => 50,
'min_password_length' => 6,
'password_with_digit' => TRUE, // digit required
'password_with_lcc' => TRUE, // lowercase character required
'password_with_ucc' => TRUE, // uppercase character required
'password_with_nwc' => TRUE, // non-word character required
'allowed_user_name_chars' => str_split('abcdefghijklmnopqrstuvwxyz0123456789-_'),
],
// Monolog settings
'logger' => [
'name' => 'slim-app',
'path' => __DIR__ . '/../logs/app.log',
'level' => \Monolog\Logger::DEBUG,
],
// Locale settings
'locale' => [
'process' => \App\Utility\LanguageUtility::LOCALE_URL | \App\Utility\LanguageUtility::DOMAIN_DISABLED,
'auto_detect' => TRUE,
'code' => 'en-US', // default / current language
'generic_code' => 'xx-XX', // routes which fits all localizations
'path' => __DIR__ . '/../locale/',
'active' => [], // active locale code domain combinations
],
// Doctrine settings
'doctrine' => [
'meta' => [
'entity_path' => [
'src/Entity'
],
'auto_generate_proxies' => true,
'proxy_dir' => __DIR__.'/../cache/proxies',
'cache' => null,
],
'connection' => [
'driver' => 'pdo_mysql',
'host' => 'localhost',
'port' => 3306,
'dbname' => '',
'user' => '',
'password' => '',
'charset' => 'utf8',
//'unix_socket' => '/Applications/MAMP/tmp/mysql/mysql.sock',
],
],
// resources for acl
'acl_resources' => [
'create_user' => ['guest', 'admin', 'superadmin'],
'edit_user' => ['member', 'admin', 'superadmin'], // edit own user information
'show_user' => ['member', 'admin', 'superadmin'], // show own user information
'delete_user' => ['member', 'admin', 'superadmin'], // delete own user
'edit_user_other' => ['admin', 'superadmin'], // edit user information from other users
'show_user_other' => ['guest', 'member', 'admin', 'superadmin'], // show user information from other users
'delete_user_other' => ['superadmin'], // delete other users
'create_role' => ['superadmin'],
'edit_role' => ['superadmin'], // edit role information
'show_role' => ['admin', 'superadmin'],
'delete_role' => ['superadmin'], // delete role
],
],
];
You can’t perform that action at this time.