All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Add support for
ignore_server_portoption (#187, thanks @nocive)
- Remove
server_nameoption default value: this will help reporting the server name correctly in Docker containers (#181, thanks @jvasseur) - Refactor
ExceptionListenerto have a dedicatedgetUserData()protected method (#180, thanks @bouland)
- Add the
routetag automatically to any event generated by a request (#167, thanks @ruudk)
- Make the
ExceptionListenermore extendable by making all members at leastprotected(#176, thanks @bouland)
- Add new
excluded_exceptionsoption in config (#123, thanks @mcfedr) - Add config for autowiring the client (#158, thanks @gander)
- Migrate YAML config to XML; drop dependency on
symfony/yaml(#155, thanks @Pierstoval)
- Remove deprecation raised by Symfony 4.2 (#161, thanks @chalasr)
- Add
symfony_versionas a default tag (#116, thanks @hjanuschka)
- Retrieve use IP address from Symfony, to honor trusted proxies (#131, thanks @eliecharra)
- Fix
processorOptionsin yaml configuration (#107)
- Avoid reporting CLI errors twice (#104)
- Add support for Symfony 4.x
- The
SentryBundle::VERSIONconstant has been replaced with theSentryBundle::getVersion(): stringmethod, to get a more accurate result - Due to a deprecation in
symfony/console, we require it at at least version 3.3, and we added a method toSentryExceptionListenerInterface:
public function onConsoleException(ConsoleErrorEvent $event);- Drop support for Symfony 2.x
- Drop support for PHP 5 and 7.0
- Add
symfony_versionas a default tag (#117, backport of #116, thanks @hjanuschka)
- Retrieve use IP address from Symfony, to honor trusted proxies (#132, backport of #131, thanks @eliecharra)
- Fix
processorOptionsin YAML configuration (#109, backport of #107)
- The
sentry.clientservice is now explicitly declared as public
- Add official support to PHP 7.2 (#71)
- Changed source folder from
src/Sentry/SentryBundleto justsrc/(thanks to PSR-4 and Composer this doesn't affect you) - Re-sort the constructor's arguments of
ExceptionListener - The
SentrySymfonyClientis no longer an optional argument ofExceptionListener; it's now required
- Remove usage of
create_function()to avoid deprecations (#71) - Fix a possible bug that could make Sentry crash if an error is triggered before loading a console command
- Fix a fatal error when the user token is not authenticated (#78)
- Drop deprecated fields from configuration; the same options can be used (since 0.8.3) under
sentry.options - Dropped the third argument from the
SentrySymfonyClientconstructor;error_typesare now fetched from the second argument, the options array - Remove support for PHP versions lower than 5.6, since they are now EOL
- Remove support for HHVM
- Add
symfony_versionas a default tag (backport of #116, thanks @hjanuschka) - Add the new
excluded_exceptionsoption from Sentry client 1.9 (see getsentry/sentry-php#583; #124, backport of #123, thanks @mcfedr)
- Require at least version 1.9 of the
sentry/sentrybase client, due to #124
- Retrieve use IP address from Symfony, to honor trusted proxies (backport of #131, thanks @eliecharra)
- Fix a fatal error when the user token is not authenticated (#78)
- Migrate service definitions to non-deprecated option configuration values
- Fix expected type of the
options.error_typesconfig value (scalar instead of array, discovered in #72) - Fix handling of deprecated options value
trim()DSN value from config, to avoid issues with .env files on BitBucket (see getsentry#21 (comment))
- Fix exception being thrown when both deprecated and new options are used.
- Migrate all the options from the config root to
sentry.options(#68); the affected options are still usable in the old form, but they will generate deprecation notices. They will be dropped in the 1.0 release.
Before:
sentry:
app_path: ~
environment: ~
error_types: ~
excluded_app_paths: ~
prefixes: ~
release: ~After:
sentry:
options:
app_path: ~
environment: ~
error_types: ~
excluded_app_paths: ~
prefixes: ~
release: ~- Migrate from PSR-0 to PSR-4
- Fix previous release with cherry pick of the right commit from #67
- Force load of client in console commands to avoid missing notices due to lazy-loading (#67)
- Add
SentryExceptionListenerInterfaceand theexception_listeneroption in the configuration (#47) to allow customization of the exception listener - Add
SentrySymfonyEvents::PRE_CAPTUREandSentrySymfonyEvents::SET_USER_CONTEXTevents (#47) to customize event capturing information - Make listeners' priority customizable through the new
listener_prioritiesconfiguration key
- Make SkipCapture work on console exceptions too
- Quote sentry.options in services.yml.
- Expose all configuration options (#36).
- Improve app path detection to exclude root folder and exclude vendor.
- Raise sentry/sentry minimum requirement to ## 1.2.0. - 2017-xx-xx Fixed an issue with a missing import (#24)### . - 2017-xx-xx
prefixesandapp_pathwill now be bound by default.
- Added
skip_captureconfiguration for excluding exceptions.
- Security services are now optional.
- Console exceptions are now captured.
- Default PHP SDK hooks will now be installed (via
Raven_Client->install). - SDK will now be registered as 'sentry-symfony'.
- Added support for capturing the current user.