Skip to content

v1.1.0

Latest

Choose a tag to compare

@ttsuru ttsuru released this 19 Oct 06:01
a5fa53d

Changes

  • Give Sentry.dsn as its parts, report Content Security Policy violations to Sentry, and move the classes to the PieceOfCake2\Sentry namespace (#19)
    • PieceOfCake2\Sentry\SentryConfig::dsn() builds the DSN from publicKey, host and projectId (or a DSN string as before), and SentryConfig::cspReportUri() gives the security endpoint with sentry_environment and sentry_release, e.g. for pieceofcake2/security-headers' reportUri
    • The classes are in src/, autoloaded by Composer (PSR-4): App::uses() is not needed. PieceOfCake2\Sentry\Error\SentryErrorHandler replaces the global SentryErrorHandler of Lib/Error, which is removed
    • Upgrading: register [SentryErrorHandler::class, 'handleError'] / 'handleException' with use PieceOfCake2\Sentry\Error\SentryErrorHandler; in config/core.php. Applications that keep 'SentryErrorHandler::handleError' load the plugin's bootstrap (CakePlugin::load('Sentry', ['bootstrap' => true])), which defines the old name as an alias. See the documentation

Full Changelog: v1.0.4...v1.1.0