diff --git a/RECIPES.md b/RECIPES.md index 926208c7..785a59ab 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -451,7 +451,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [secit-pl/imap-bundle](https://packagist.org/packages/secit-pl/imap-bundle) | [1.0](secit-pl/imap-bundle/1.0) | | [seferov/aws-bundle](https://packagist.org/packages/seferov/aws-bundle) | [3.0](seferov/aws-bundle/3.0) | | [sensiolabs/connect-bundle](https://packagist.org/packages/sensiolabs/connect-bundle) | [4.0](sensiolabs/connect-bundle/4.0) | -| [sentry/sentry-symfony](https://packagist.org/packages/sentry/sentry-symfony) | [4.0](sentry/sentry-symfony/4.0) | +| [sentry/sentry-symfony](https://packagist.org/packages/sentry/sentry-symfony) | [4.6](sentry/sentry-symfony/4.6) | | [sg/datatablesbundle](https://packagist.org/packages/sg/datatablesbundle) | [1.0](sg/datatablesbundle/1.0) | | [siganushka/generic-bundle](https://packagist.org/packages/siganushka/generic-bundle) | [0.3](siganushka/generic-bundle/0.3) | | [siganushka/region-bundle](https://packagist.org/packages/siganushka/region-bundle) | [0.1](siganushka/region-bundle/0.1) | diff --git a/archived/sentry.sentry-symfony/27b184582b31a79a21f461df82fd8a0eaba658ff.json b/archived/sentry.sentry-symfony/27b184582b31a79a21f461df82fd8a0eaba658ff.json new file mode 100644 index 00000000..aac5661e --- /dev/null +++ b/archived/sentry.sentry-symfony/27b184582b31a79a21f461df82fd8a0eaba658ff.json @@ -0,0 +1,60 @@ +{ + "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/#monolog-integration", + "# 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": "27b184582b31a79a21f461df82fd8a0eaba658ff" + } + } +} diff --git a/archived/sentry.sentry-symfony/31024cb40a800443dc032ce8b463b73879a7942a.json b/archived/sentry.sentry-symfony/31024cb40a800443dc032ce8b463b73879a7942a.json new file mode 100644 index 00000000..677990dc --- /dev/null +++ b/archived/sentry.sentry-symfony/31024cb40a800443dc032ce8b463b73879a7942a.json @@ -0,0 +1,59 @@ +{ + "manifests": { + "sentry/sentry-symfony": { + "manifest": { + "bundles": { + "Sentry\\SentryBundle\\SentryBundle": [ + "prod" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "SENTRY_DSN": "" + } + }, + "files": { + "config/packages/prod/sentry.yaml": { + "contents": [ + "sentry:", + " dsn: '%env(SENTRY_DSN)%'", + " options:", + " excluded_exceptions:", + " - Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException", + " - Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException", + "", + "# If you are using Monolog, you also need this additional configuration to log the errors correctly:", + "# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration", + "# 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", + "" + ], + "executable": false + } + }, + "ref": "31024cb40a800443dc032ce8b463b73879a7942a" + } + } +} diff --git a/archived/sentry.sentry-symfony/f7b4706a3e8a6f096b7392f3146f4f7f65ff594c.json b/archived/sentry.sentry-symfony/f7b4706a3e8a6f096b7392f3146f4f7f65ff594c.json new file mode 100644 index 00000000..17f3adc2 --- /dev/null +++ b/archived/sentry.sentry-symfony/f7b4706a3e8a6f096b7392f3146f4f7f65ff594c.json @@ -0,0 +1,47 @@ +{ + "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", + "symfony/monolog-bundle": "<3.7" + } + }, + "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/#monolog-integration", + "# register_error_listener: false", + "# register_error_handler: false", + "", + "# monolog:", + "# handlers:", + "# sentry:", + "# type: sentry", + "# level: !php/const Monolog\\Logger::ERROR", + "# hub_id: Sentry\\State\\HubInterface", + "" + ], + "executable": false + } + }, + "ref": "f7b4706a3e8a6f096b7392f3146f4f7f65ff594c" + } + } +} diff --git a/index.json b/index.json index a8ec748e..4961b952 100644 --- a/index.json +++ b/index.json @@ -1421,7 +1421,8 @@ "sentry/sentry-symfony": [ "1.0", "3.0", - "4.0" + "4.0", + "4.6" ], "sg/datatablesbundle": [ "1.0" @@ -1815,6 +1816,10 @@ "sentry/sentry-symfony": { "4.0": { "symfony/framework-bundle": "<5.4" + }, + "4.6": { + "symfony/framework-bundle": "<5.4", + "symfony/monolog-bundle": "<3.7" } } }, diff --git a/sentry.sentry-symfony.3.0.json b/sentry.sentry-symfony.3.0.json index ab8a2388..677990dc 100644 --- a/sentry.sentry-symfony.3.0.json +++ b/sentry.sentry-symfony.3.0.json @@ -24,27 +24,36 @@ " - Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException", " - Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException", "", - "# If you are using Monolog, you also need these additional configuration and services to log the errors correctly:", + "# If you are using Monolog, you also need this additional configuration to log the errors correctly:", "# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration", "# register_error_listener: false", "", - "# monolog:", - "# handlers:", - "# sentry:", - "# type: service", - "# id: Sentry\\Monolog\\Handler", + "# monolog:", + "# handlers:", + "# sentry:", + "# type: sentry", + "# level: !php/const Monolog\\Logger::ERROR", + "# hub_id: Sentry\\State\\HubInterface", "", - "# services:", - "# Sentry\\Monolog\\Handler:", - "# arguments:", - "# $hub: '@Sentry\\State\\HubInterface'", - "# $level: !php/const Monolog\\Logger::ERROR", + "# 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", "" ], "executable": false } }, - "ref": "fc6a6baeee961a34a70eca0f91e868d03ce7bd9b" + "ref": "31024cb40a800443dc032ce8b463b73879a7942a" } } } diff --git a/sentry.sentry-symfony.4.0.json b/sentry.sentry-symfony.4.0.json index 8e2eb5ea..aac5661e 100644 --- a/sentry.sentry-symfony.4.0.json +++ b/sentry.sentry-symfony.4.0.json @@ -24,13 +24,22 @@ " sentry:", " dsn: '%env(SENTRY_DSN)%'", "", - "# If you are using Monolog, you also need these additional configuration and services to log the errors correctly:", + "# If you are using Monolog, you also need this additional configuration to log the errors correctly:", "# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration", "# 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", "", @@ -45,7 +54,7 @@ "executable": false } }, - "ref": "9ac202e84b6fb3c276cb3d7846006e0df65272d0" + "ref": "27b184582b31a79a21f461df82fd8a0eaba658ff" } } } diff --git a/sentry.sentry-symfony.4.6.json b/sentry.sentry-symfony.4.6.json new file mode 100644 index 00000000..17f3adc2 --- /dev/null +++ b/sentry.sentry-symfony.4.6.json @@ -0,0 +1,47 @@ +{ + "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", + "symfony/monolog-bundle": "<3.7" + } + }, + "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/#monolog-integration", + "# register_error_listener: false", + "# register_error_handler: false", + "", + "# monolog:", + "# handlers:", + "# sentry:", + "# type: sentry", + "# level: !php/const Monolog\\Logger::ERROR", + "# hub_id: Sentry\\State\\HubInterface", + "" + ], + "executable": false + } + }, + "ref": "f7b4706a3e8a6f096b7392f3146f4f7f65ff594c" + } + } +}