-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathgeneral.php
More file actions
30 lines (28 loc) · 997 Bytes
/
general.php
File metadata and controls
30 lines (28 loc) · 997 Bytes
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
<?php
/**
* General Configuration
*
* All of your system's general configuration settings go in here. You can see a
* list of the available settings in vendor/craftcms/cms/src/config/GeneralConfig.php.
*
* @see \craft\config\GeneralConfig
* @link https://craftcms.com/docs/5.x/reference/config/general.html
*/
use craft\config\GeneralConfig;
use craft\helpers\App;
return GeneralConfig::create()
// Set the default week start day for date pickers (0 = Sunday, 1 = Monday, etc.)
->defaultWeekStartDay(1)
// Prevent generated URLs from including "index.php"
->omitScriptNameInUrls()
// Preload Single entries as Twig variables
->preloadSingles()
// Prevent user enumeration attacks
->preventUserEnumeration()
// Enable the Twig sandbox for system messages, etc.
->enableTwigSandbox()
// Set the @webroot alias so the clear-caches command knows where to find CP resources
->aliases([
'@webroot' => dirname(__DIR__) . '/web',
])
;