Repository navigation
Changes
- Give
Sentry.dsnas its parts, report Content Security Policy violations to Sentry, and move the classes to thePieceOfCake2\Sentrynamespace (#19)PieceOfCake2\Sentry\SentryConfig::dsn()builds the DSN frompublicKey,hostandprojectId(or a DSN string as before), andSentryConfig::cspReportUri()gives the security endpoint withsentry_environmentandsentry_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\SentryErrorHandlerreplaces the globalSentryErrorHandlerofLib/Error, which is removed - Upgrading: register
[SentryErrorHandler::class, 'handleError']/'handleException'withuse PieceOfCake2\Sentry\Error\SentryErrorHandler;inconfig/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