forked from EC-CUBE/ec-cube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
framework.yaml
52 lines (51 loc) · 2.18 KB
/
framework.yaml
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
framework:
secret: '%env(ECCUBE_AUTH_MAGIC)%'
default_locale: '%locale%'
translator:
fallback: ['%locale%']
csrf_protection: { enabled: true }
http_method_override: true
trusted_hosts: ~
# https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
session:
handler_id: 'Eccube\Session\Storage\Handler\SameSiteNoneCompatSessionHandler'
save_path: '%kernel.project_dir%/var/sessions/%kernel.environment%'
name: '%env(ECCUBE_COOKIE_NAME)%'
cookie_lifetime: '%env(ECCUBE_COOKIE_LIFETIME)%'
gc_maxlifetime: '%env(ECCUBE_GC_MAXLIFETIME)%'
cookie_httponly: true
# When using the HTTP Cache, ESI allows to render page fragments separately
# and with different cache configurations for each fragment
# https://symfony.com/doc/current/book/http_cache.html#edge-side-includes
esi: { enabled: true }
fragments: { enabled: true }
php_errors:
log: true
assets:
base_path: '/html/template/%eccube.theme%'
packages:
admin:
base_path: '/html/template/admin'
save_image:
base_path: '/html/upload/save_image'
plugin:
base_path: '/html/plugin'
install:
base_path: '/html/template/install'
temp_image:
base_path: '/html/upload/temp_image'
user_data:
base_path: '/html/user_data'
# json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
cache:
# this value is used as part of the "namespace" generated for the cache item keys
# to avoid collisions when multiple apps share the same cache backend (e.g. a Redis server)
# See https://symfony.com/doc/current/reference/configuration/framework.html#prefix-seed
prefix_seed: ec-cube
# The 'ide' option turns all of the file paths in an exception page
# into clickable links that open the given file using your favorite IDE.
# When 'ide' is set to null the file is opened in your web browser.
# See https://symfony.com/doc/current/reference/configuration/framework.html#ide
ide: ~
validation: { enable_annotations: true }
templating: { engines: ['twig'] }