Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 878 Bytes

UPGRADING.md

File metadata and controls

28 lines (20 loc) · 878 Bytes

Upgrading from 1.x to 2.0

The constructor signature of SentryClient has changed.

If you had code like the following:

$client = new SentryClient("https://[email protected]/1234567");

You will need to upgrade to the new constructor signature as follows:

$client = new SentryClient(
    new DirectEventCapture(
        new DSN("https://[email protected]/1234567")
    )
);

The second constructor argument to the SentryClient constructor ($extensions) is the same as before.

If you were using the public SentryClient::$proxy setting previously available, you can now provide this as a second argument to the DirectEventCapture constructor.

Note the introduction of the DSN model, which may come in handy if you wish to build a custom EventCapture implementation for some reason.