mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 23:26:40 +03:00
61 lines
2.5 KiB
JSON
61 lines
2.5 KiB
JSON
{
|
|
"manifests": {
|
|
"sentry/sentry-symfony": {
|
|
"manifest": {
|
|
"bundles": {
|
|
"Sentry\\SentryBundle\\SentryBundle": [
|
|
"prod"
|
|
]
|
|
},
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/"
|
|
},
|
|
"env": {
|
|
"SENTRY_DSN": ""
|
|
},
|
|
"conflict": {
|
|
"symfony/framework-bundle": "<5.4"
|
|
}
|
|
},
|
|
"files": {
|
|
"config/packages/sentry.yaml": {
|
|
"contents": [
|
|
"when@prod:",
|
|
" sentry:",
|
|
" dsn: '%env(SENTRY_DSN)%'",
|
|
"",
|
|
"# If you are using Monolog, you also need this additional configuration to log the errors correctly:",
|
|
"# https://docs.sentry.io/platforms/php/guides/symfony/integrations/monolog/",
|
|
"# register_error_listener: false",
|
|
"",
|
|
"# monolog:",
|
|
"# handlers:",
|
|
"# sentry:",
|
|
"# type: sentry",
|
|
"# level: !php/const Monolog\\Logger::ERROR",
|
|
"# hub_id: Sentry\\State\\HubInterface",
|
|
"",
|
|
"# If you are using MonologBundle prior to v3.7, you need to configure the handler as a service instead:",
|
|
"",
|
|
"# monolog:",
|
|
"# handlers:",
|
|
"# sentry:",
|
|
"# type: service",
|
|
"# id: Sentry\\Monolog\\Handler",
|
|
"",
|
|
"# services:",
|
|
"# Sentry\\Monolog\\Handler:",
|
|
"# arguments:",
|
|
"# $hub: '@Sentry\\State\\HubInterface'",
|
|
"# $level: !php/const Monolog\\Logger::ERROR",
|
|
"# $bubble: false",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "427518bbd43bc4871808e648310865965159ac5c"
|
|
}
|
|
}
|
|
}
|