Sylius/app/config/config.yml
Kamil Kokot 6771774665
[Theme] Rework computing fallback locales
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.
2016-08-04 12:06:38 +02:00

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 }