From 188a989450463b329572f504bbb7973893480203 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 4 Dec 2020 17:09:47 +0100 Subject: [PATCH] Internal: Add api platform/notifier settings + fix migration settings --- config/packages/doctrine_migrations.yaml | 6 +++++- config/packages/notifier.yaml | 16 ++++++++++++++++ config/packages/prod/api_platform.yaml | 3 +++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 config/packages/notifier.yaml create mode 100644 config/packages/prod/api_platform.yaml diff --git a/config/packages/doctrine_migrations.yaml b/config/packages/doctrine_migrations.yaml index a2f0028ac1..31438662a4 100644 --- a/config/packages/doctrine_migrations.yaml +++ b/config/packages/doctrine_migrations.yaml @@ -1,6 +1,10 @@ doctrine_migrations: migrations_paths: - 'Chamilo\CoreBundle\Migrations\Schema\V200': '%kernel.project_dir%/src/CoreBundle/Migrations/Schema/V200' + 'Chamilo\CoreBundle\Migrations\Schema\V200': 'src/CoreBundle/Migrations/Schema/V200' + # Run all migrations in a transaction. all_or_nothing: true + + # Adds an extra check in the generated migrations to ensure that is executed on the same database type. check_database_platform: true + connection: default \ No newline at end of file diff --git a/config/packages/notifier.yaml b/config/packages/notifier.yaml new file mode 100644 index 0000000000..3984a48dc7 --- /dev/null +++ b/config/packages/notifier.yaml @@ -0,0 +1,16 @@ +framework: + notifier: + #chatter_transports: + # slack: '%env(SLACK_DSN)%' + # telegram: '%env(TELEGRAM_DSN)%' + #texter_transports: + # twilio: '%env(TWILIO_DSN)%' + # nexmo: '%env(NEXMO_DSN)%' + channel_policy: + # use chat/slack, chat/telegram, sms/twilio or sms/nexmo + urgent: ['email'] + high: ['email'] + medium: ['email'] + low: ['email'] + admin_recipients: + - { email: admin@example.com } diff --git a/config/packages/prod/api_platform.yaml b/config/packages/prod/api_platform.yaml new file mode 100644 index 0000000000..a605cfd4f0 --- /dev/null +++ b/config/packages/prod/api_platform.yaml @@ -0,0 +1,3 @@ +api_platform: + enable_docs: false + enable_entrypoint: false \ No newline at end of file