Slack notify

This commit is contained in:
Marko
2023-06-14 17:02:24 +02:00
parent 0579a62931
commit 30a8e73f21
33 changed files with 1334 additions and 1137 deletions

View File

@@ -1,39 +0,0 @@
api_platform:
title: CDS Connector API
version: 1.0.0
mapping:
paths: ['%kernel.project_dir%/src/Entity']
patch_formats:
json: ['application/merge-patch+json']
swagger:
versions: [3]
formats:
json: [ 'application/json' ]
jsonld: [ 'application/ld+json' ]
html: [ 'text/html' ]
multipart: [ 'multipart/form-data' ]
allow_plain_identifiers: true
oauth:
# To enable or disable OAuth.
enabled: false
# The OAuth client ID.
clientId: 'cycro'
# The OAuth client secret.
clientSecret: 'cycro123'
# The OAuth type.
type: 'oauth2'
# The OAuth flow grant type.
flow: 'application'
# The OAuth token URL.
tokenUrl: '/oauth/v2/token'
# The OAuth authentication URL.
authorizationUrl: '/oauth/v2/auth'
# The OAuth scopes.
scopes: []

View File

@@ -1,9 +1,6 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
secret: '%env(APP_SECRET)%'
# SHOPWARE_API_URL: '%env(string:SHOPWARE_API_URL)%'
# SHOPWARE_API_KEY: '%env(string:SHOPWARE_API_KEY)%'
# SHOPWARE_API_ID: '%env(string:SHOPWARE_API_ID)%'
#csrf_protection: true
http_method_override: false

View File

@@ -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: ['slack']
high: ['slack']
medium: ['email']
low: ['email']
admin_recipients:
- { email: admin@example.com }