mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-17 02:18:01 +00:00
Theme name is no longer appended after `_` but after `@` instead (locale modifier). Fallback locales computing was extracted to another class. Generates shorter versions of both current locale and fallback locale, eg. Current locale: `pl_PL`; fallback locale: `en_US`; makes the following chain: `pl_PL` -> `pl` -> `en_US` -> `en` In regular Symfony it wouldn't contain the last element.
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
# This file is part of the Sylius package.
|
|
# (c) Paweł Jędrzejewski
|
|
|
|
imports:
|
|
- { resource: "@SyliusCoreBundle/Resources/config/app/config.yml" }
|
|
- { resource: "@SyliusAdminBundle/Resources/config/app/config.yml" }
|
|
- { resource: "@SyliusShopBundle/Resources/config/app/config.yml" }
|
|
|
|
- { resource: "parameters.yml" }
|
|
- { resource: "security.yml" }
|
|
|
|
framework:
|
|
translator: { fallbacks: ["%locale%"] }
|
|
secret: "%secret%"
|
|
router:
|
|
resource: "%kernel.root_dir%/config/routing.yml"
|
|
strict_requirements: "%kernel.debug%"
|
|
form: true
|
|
csrf_protection: true
|
|
validation: { enable_annotations: true }
|
|
templating: { engines: ["twig"] }
|
|
default_locale: "%locale%"
|
|
trusted_proxies: ~
|
|
session:
|
|
handler_id: ~
|
|
|
|
doctrine:
|
|
dbal:
|
|
driver: "%database_driver%"
|
|
host: "%database_host%"
|
|
port: "%database_port%"
|
|
dbname: "%database_name%"
|
|
user: "%database_user%"
|
|
password: "%database_password%"
|
|
charset: UTF8
|
|
|
|
doctrine_migrations:
|
|
dir_name: "%kernel.root_dir%/migrations"
|
|
namespace: Sylius\Migrations
|
|
table_name: sylius_migrations
|
|
name: Sylius Migrations
|
|
|
|
swiftmailer:
|
|
transport: "%mailer_transport%"
|
|
host: "%mailer_host%"
|
|
username: "%mailer_user%"
|
|
password: "%mailer_password%"
|
|
|
|
fos_rest:
|
|
view:
|
|
formats:
|
|
json: true
|
|
xml: true
|
|
empty_content: 204
|
|
format_listener:
|
|
rules:
|
|
- { path: '^/api', priorities: ['json', 'xml'], fallback_format: json, prefer_extension: true }
|
|
- { path: '^/', stop: true }
|