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
symfony_version
as a default tag (#116, thanks @hjanuschka)
- Retrieve use IP address from Symfony, to honor trusted proxies (#131, thanks @eliecharra)
- Fix
processorOptions
in yaml configuration (#107)
- Avoid reporting CLI errors twice (#104)
- Add support for Symfony 4.x
- The
SentryBundle::VERSION
constant has been replaced with theSentryBundle::getVersion(): string
method, 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_version
as 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
processorOptions
in YAML configuration (#109, backport of #107)
- The
sentry.client
service is now explicitly declared as public
- Add official support to PHP 7.2 (#71)
- Changed source folder from
src/Sentry/SentryBundle
to justsrc/
(thanks to PSR-4 and Composer this doesn't affect you) - Re-sort the constructor's arguments of
ExceptionListener
- The
SentrySymfonyClient
is 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
SentrySymfonyClient
constructor;error_types
are 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_version
as a default tag (backport of #116, thanks @hjanuschka) - Add the new
excluded_exceptions
option 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/sentry
base 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_types
config 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
SentryExceptionListenerInterface
and theexception_listener
option in the configuration (#47) to allow customization of the exception listener - Add
SentrySymfonyEvents::PRE_CAPTURE
andSentrySymfonyEvents::SET_USER_CONTEXT
events (#47) to customize event capturing information - Make listeners' priority customizable through the new
listener_priorities
configuration 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
prefixes
andapp_path
will now be bound by default.
- Added
skip_capture
configuration 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.