-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.php.example
49 lines (33 loc) · 1.37 KB
/
settings.php.example
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
<?php
declare(strict_types=1);
use Lits\Config\FrameworkConfig;
use Lits\Config\SearchConfig;
use Lits\Config\SessionConfig;
use Lits\Config\TemplateConfig;
use Lits\Framework;
return function (Framework $framework): void {
$settings = $framework->settings();
assert($settings['framework'] instanceof FrameworkConfig);
// Whether to enable debug information.
// $settings['framework']->debug = false;
// Path to log file to be generated by the application.
// $settings['framework']->log = '';
assert($settings['session'] instanceof SessionConfig);
// Base64 encoded key with at least 32-bits of entropy. Required.
// $settings['session']->key = '';
// Seconds before a session will expire.
// $settings['session']->expires = 3600;
assert($settings['template'] instanceof TemplateConfig);
// Path to cache directory, which must be writable.
$settings['template']->cache = __DIR__ . DIRECTORY_SEPARATOR . 'cache';
// Paths to search for template files.
// $settings['template']->paths[] = '';
// Name of the site.
$settings['template']->site = 'Catalog';
// Menu for the site.
// $settings['template']->menu = [];
assert($settings['search'] instanceof SearchConfig);
// Catalog slugs and URLs. Required
// $settings['search']->catalogs['example'] =
// 'http://catalog.example.edu/search';
};