Skip to content

Commit 5991789

Browse files
Statamic 5 (#4)
* Delete `antlers.php` config The parser option has been removed, as the Regex parser has been completley removed from Statamic. * Don't export `antlers.php` config file * Migrate multisite config * We're not exporting this file, so it's probably not needed.
1 parent 34e3fc4 commit 5991789

File tree

6 files changed

+211
-155
lines changed

6 files changed

+211
-155
lines changed

.env.example

Lines changed: 0 additions & 56 deletions
This file was deleted.

config/statamic/antlers.php

Lines changed: 0 additions & 60 deletions
This file was deleted.

config/statamic/sites.php

Lines changed: 0 additions & 37 deletions
This file was deleted.

config/statamic/system.php

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| License Key
8+
|--------------------------------------------------------------------------
9+
|
10+
| The license key for the corresponding domain from your Statamic account.
11+
| Without a key entered, your app will considered to be in Trial Mode.
12+
|
13+
| https://statamic.dev/licensing#trial-mode
14+
|
15+
*/
16+
17+
'license_key' => env('STATAMIC_LICENSE_KEY'),
18+
19+
/*
20+
|--------------------------------------------------------------------------
21+
| Enable Multi-site
22+
|--------------------------------------------------------------------------
23+
|
24+
| Whether Statamic's multi-site functionality should be enabled. It is
25+
| assumed Statamic Pro is also enabled. To get started, you can run
26+
| the `php please multisite` command to update your content file
27+
| structure, after which you can manage your sites in the CP.
28+
|
29+
| https://statamic.dev/multi-site
30+
|
31+
*/
32+
33+
'multisite' => true,
34+
35+
/*
36+
|--------------------------------------------------------------------------
37+
| Default Addons Paths
38+
|--------------------------------------------------------------------------
39+
|
40+
| When generating addons via `php please make:addon`, this path will be
41+
| used by default. You can still specify custom repository paths in
42+
| your composer.json, but this is the path used by the generator.
43+
|
44+
*/
45+
46+
'addons_path' => base_path('addons'),
47+
48+
/*
49+
|--------------------------------------------------------------------------
50+
| Send the Powered-By Header
51+
|--------------------------------------------------------------------------
52+
|
53+
| Websites like builtwith.com use the X-Powered-By header to determine
54+
| what technologies are used on a particular site. By default, we'll
55+
| send this header, but you are absolutely allowed to disable it.
56+
|
57+
*/
58+
59+
'send_powered_by_header' => true,
60+
61+
/*
62+
|--------------------------------------------------------------------------
63+
| Date Format
64+
|--------------------------------------------------------------------------
65+
|
66+
| Whenever a Carbon date is cast to a string on front-end routes, it will
67+
| use this format. On CP routes, the format defined in cp.php is used.
68+
| You can customize this format using PHP's date string constants.
69+
| Setting this value to null will use Carbon's default format.
70+
|
71+
| https://www.php.net/manual/en/function.date.php
72+
|
73+
*/
74+
75+
'date_format' => 'F jS, Y',
76+
77+
/*
78+
|--------------------------------------------------------------------------
79+
| Default Character Set
80+
|--------------------------------------------------------------------------
81+
|
82+
| Statamic will use this character set when performing specific string
83+
| encoding and decoding operations; This does not apply everywhere.
84+
|
85+
*/
86+
87+
'charset' => 'UTF-8',
88+
89+
/*
90+
|--------------------------------------------------------------------------
91+
| Track Last Update
92+
|--------------------------------------------------------------------------
93+
|
94+
| Statamic will automatically set an `updated_at` timestamp (along with
95+
| `updated_by`, where applicable) when specific content is updated.
96+
| In some situations, you may wish disable this functionality.
97+
|
98+
*/
99+
100+
'track_last_update' => true,
101+
102+
/*
103+
|--------------------------------------------------------------------------
104+
| Enable Cache Tags
105+
|--------------------------------------------------------------------------
106+
|
107+
| Sometimes you'll want to be able to disable the {{ cache }} tags in
108+
| Antlers, so here is where you can do that. Otherwise, it will be
109+
| enabled all the time.
110+
|
111+
*/
112+
113+
'cache_tags_enabled' => env('STATAMIC_CACHE_TAGS_ENABLED', true),
114+
115+
/*
116+
|--------------------------------------------------------------------------
117+
| Intensive Operations
118+
|--------------------------------------------------------------------------
119+
|
120+
| Sometimes Statamic requires extra resources to complete intensive
121+
| operations. Here you may configure system resource limits for
122+
| those rare times when we need to turn things up to eleven!
123+
|
124+
*/
125+
126+
'php_memory_limit' => '-1',
127+
'php_max_execution_time' => '0',
128+
'ajax_timeout' => '600000',
129+
'pcre_backtrack_limit' => '-1',
130+
131+
/*
132+
|--------------------------------------------------------------------------
133+
| Debugbar Integration
134+
|--------------------------------------------------------------------------
135+
|
136+
| Statamic integrates with Laravel Debugbar to bring more detail to your
137+
| debugging experience. Here you may adjust various default options.
138+
|
139+
*/
140+
141+
'debugbar' => [
142+
'pretty_print_variables' => true,
143+
],
144+
145+
/*
146+
|--------------------------------------------------------------------------
147+
| ASCII
148+
|--------------------------------------------------------------------------
149+
|
150+
| During various string manipulations (e.g. slugification), Statamic will
151+
| need to make ASCII character conversions. Here you may define whether
152+
| or not extra characters get converted. e.g. "%" becomes "percent".
153+
|
154+
*/
155+
156+
'ascii_replace_extra_symbols' => false,
157+
158+
/*
159+
|--------------------------------------------------------------------------
160+
| Update References on Change
161+
|--------------------------------------------------------------------------
162+
|
163+
| With this enabled, Statamic will attempt to update references to assets
164+
| and terms when moving, renaming, replacing, deleting, etc. This will
165+
| be queued, but it can disabled as needed for performance reasons.
166+
|
167+
*/
168+
169+
'update_references' => true,
170+
171+
/*
172+
|--------------------------------------------------------------------------
173+
| Row ID handle
174+
|--------------------------------------------------------------------------
175+
|
176+
| Rows in Grid, Replicator, and Bard fields will be given a unique ID using
177+
| the "id" field. You may need your own field named "id", in which case
178+
| you may customize the handle of the field that Statamic will use.
179+
|
180+
*/
181+
182+
'row_id_handle' => 'id',
183+
184+
/*
185+
|--------------------------------------------------------------------------
186+
| Fake SQL Queries
187+
|--------------------------------------------------------------------------
188+
|
189+
| Enable while using the flat-file Stache driver to show fake "SQL" query
190+
| approximations in your database debugging tools — including Debugbar,
191+
| Laravel Telescope, and Ray with the ray()->showQueries() helper.
192+
|
193+
*/
194+
195+
'fake_sql_queries' => config('app.debug'),
196+
197+
];

resources/sites.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
en:
2+
name: 'The Getaway'
3+
locale: en_US
4+
url: /
5+
de:
6+
name: 'Die Flucht'
7+
locale: de_DE
8+
url: /de/
9+
fr:
10+
name: "L'Escapade"
11+
locale: fr_FR
12+
url: /fr/

starter-kit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export_paths:
22
- content
3-
- config/statamic/antlers.php
43
- config/statamic/editions.php
5-
- config/statamic/sites.php
64
- config/statamic/ssg.php
5+
- config/statamic/system.php
76
- resources/blueprints
87
- resources/fieldsets
98
- resources/forms
109
- resources/css
1110
- resources/views
11+
- resources/sites.yaml
1212
- public/assets
1313
- public/build
1414
- package.json

0 commit comments

Comments
 (0)