Files
core/config/packages/framework.yaml
T
2020-06-15 09:16:27 +02:00

35 lines
1.6 KiB
YAML

framework:
secret: '%env(APP_SECRET)%'
csrf_protection: { enabled: true }
http_method_override: true
trusted_hosts: ~
session:
# With this config, PHP's native session handling is used
handler_id: ~
cookie_lifetime: 1209600 #expires in 14 days
# 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:
json_manifest_path: '%kernel.project_dir%/%bolt.public_folder%/assets/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: bolt
# 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: phpstorm
validation:
email_validation_mode: 'html5'
enable_annotations: true
# Override Symfony's error controller, so we can show custom 404's and 503's
error_controller: Bolt\Controller\ErrorController::showAction