From ec0306ff2083773fd88335934ea5823222968cd5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 25 Feb 2018 06:19:26 +0100 Subject: [PATCH 1/1] Add parameters template --- Resources/config/parameters.yml.dist | 60 ++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Resources/config/parameters.yml.dist diff --git a/Resources/config/parameters.yml.dist b/Resources/config/parameters.yml.dist new file mode 100644 index 0000000..ab4e194 --- /dev/null +++ b/Resources/config/parameters.yml.dist @@ -0,0 +1,60 @@ +# This file is a "template" of what your parameters.yml file should look like +# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production. +# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration +parameters: + database_host: localhost + database_port: null + database_name: blog + database_user: blog + database_password: ~ + + mailer_transport: smtp + mailer_host: 127.0.0.1 + mailer_user: ~ + mailer_password: ~ + + # A secret key that's used to generate certain security-related tokens + secret: ThisTokenIsNotSoSecretChangeIt + + # Blog config + blog.locales: [ en, fr ] + blog.logo: 'bundles/rapsysblog/png/favicon.png' + blog.title: 'Dev log' + blog.welcome: 'Welcome to %blog.title%' + blog.contact_mail: 'blog@rapsys.eu' + blog.contact_name: 'Raphaël Gertz' + +# Add json dql function +doctrine: + orm: + dql: + string_functions: + Json: + Rapsys\BlogBundle\DQL\JsonFunction + +# Sension config +sensio_framework_extra: + router: + annotations: false + request: + converters: false + auto_convert: false + view: + annotations: false + cache: + annotations: false + security: + annotations: false + psr_message: + enabled: false + +# Set fallback locale +framework: + translator: + fallbacks: + - '%locale%' + +# Set twig global +twig: + globals: + blog_locales: '%blog.locales%' -- 2.41.1